mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 09:27:16 +02: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:
parent
44df5da771
commit
5edb7935ed
190 changed files with 2312 additions and 3096 deletions
|
@ -17,7 +17,6 @@ package google.registry.monitoring.metrics;
|
|||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
import com.google.common.base.Supplier;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
|
@ -76,12 +75,7 @@ public class MetricRegistryImplTest {
|
|||
"test_description",
|
||||
"test_valuedisplayname",
|
||||
ImmutableSet.of(label),
|
||||
new Supplier<ImmutableMap<ImmutableList<String>, Long>>() {
|
||||
@Override
|
||||
public ImmutableMap<ImmutableList<String>, Long> get() {
|
||||
return ImmutableMap.of(ImmutableList.of("foo"), 1L);
|
||||
}
|
||||
},
|
||||
() -> ImmutableMap.of(ImmutableList.of("foo"), 1L),
|
||||
Long.class);
|
||||
|
||||
assertThat(testGauge.getValueClass()).isSameAs(Long.class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue