mirror of
https://github.com/google/nomulus
synced 2026-01-10 07:57:58 +00:00
Run automatic Java 8 conversion over codebase
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171174380
This commit is contained in:
@@ -153,9 +153,7 @@ public class EventMetric extends AbstractMetric<Distribution> {
|
||||
lock.lock();
|
||||
|
||||
try {
|
||||
if (!values.containsKey(labelValues)) {
|
||||
values.put(labelValues, new MutableDistribution(distributionFitter));
|
||||
}
|
||||
values.computeIfAbsent(labelValues, k -> new MutableDistribution(distributionFitter));
|
||||
|
||||
values.get(labelValues).add(sample, count);
|
||||
valueStartTimestamps.putIfAbsent(labelValues, startTimestamp);
|
||||
|
||||
Reference in New Issue
Block a user