Skip to content

Commit

Permalink
Merge pull request #162 from spotify/make_method_public
Browse files Browse the repository at this point in the history
make getCounter public
  • Loading branch information
catherinejelder authored Aug 4, 2021
2 parents f08e1f6 + a6cce7c commit 0bfa52c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import scala.collection.compat.immutable.ArraySeq
object ElitzurMetrics {

/** construct Beam counter from parts of counter name */
private[elitzur] def getCounter(className: String,
fieldName: String,
validationType: String,
state: CounterTypes.Value): Counter = {
def getCounter(className: String,
fieldName: String,
validationType: String,
state: CounterTypes.Value): Counter = {
val stateStr = state.toString
val sb =
new JStringBuilder(fieldName.length + 1 + validationType.length + 8 + stateStr.length)
Expand Down

0 comments on commit 0bfa52c

Please sign in to comment.