Skip to content

Commit

Permalink
Remove superfluous overload attribute
Browse files Browse the repository at this point in the history
These don't have an effect on methods without defaults.
This is a compiler warning, which we failed to get rid of.
  • Loading branch information
badboy committed Aug 3, 2022
1 parent 7647b18 commit bce13a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,5 @@ class EventMetricType<ExtraKeysEnum, ExtraObject> internal constructor(
* @return the number of errors recorded for the metric.
*/
@VisibleForTesting(otherwise = VisibleForTesting.NONE)
@JvmOverloads
fun testGetNumRecordedErrors(errorType: ErrorType) = inner.testGetNumRecordedErrors(errorType)
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ class LabeledMetricType<T>(
* @return the number of errors recorded for the metric.
*/
@VisibleForTesting(otherwise = VisibleForTesting.NONE)
@JvmOverloads
fun testGetNumRecordedErrors(errorType: ErrorType): Int {
return when (this.inner) {
is LabeledCounter -> this.inner.testGetNumRecordedErrors(errorType)
Expand Down

0 comments on commit bce13a8

Please sign in to comment.