Skip to content

Commit

Permalink
spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lct45 committed Aug 17, 2021
1 parent 908fc84 commit a72c538
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;
Expand Down Expand Up @@ -53,6 +52,7 @@ public StorageUtilizationMetricsReporter() {
this(MetricCollectors.getMetrics());
}

@VisibleForTesting
public StorageUtilizationMetricsReporter(final Metrics metricRegistry) {
this.metricsSeen = new HashMap<>();
this.metricRegistry = metricRegistry;
Expand Down Expand Up @@ -278,18 +278,6 @@ public BigInteger getValue() {
}
return newValue;
}

@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final TaskStorageMetric storageMetric = (TaskStorageMetric) o;
return Objects.equals(metricName, storageMetric.metricName);
}
}

}

0 comments on commit a72c538

Please sign in to comment.