mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +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
|
@ -22,7 +22,6 @@ import com.google.api.client.json.jackson2.JacksonFactory;
|
|||
import com.google.api.services.monitoring.v3.Monitoring;
|
||||
import com.google.api.services.monitoring.v3.MonitoringScopes;
|
||||
import com.google.api.services.monitoring.v3.model.MonitoredResource;
|
||||
import com.google.common.base.Supplier;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
|
@ -130,12 +129,7 @@ public final class SheepCounterExample {
|
|||
"Quality of the sleep.",
|
||||
"Quality",
|
||||
ImmutableSet.<LabelDescriptor>of(),
|
||||
new Supplier<ImmutableMap<ImmutableList<String>, Double>>() {
|
||||
@Override
|
||||
public ImmutableMap<ImmutableList<String>, Double> get() {
|
||||
return ImmutableMap.of(ImmutableList.<String>of(), new Random().nextDouble());
|
||||
}
|
||||
},
|
||||
() -> ImmutableMap.of(ImmutableList.<String>of(), new Random().nextDouble()),
|
||||
Double.class);
|
||||
|
||||
/**
|
||||
|
@ -210,13 +204,10 @@ public final class SheepCounterExample {
|
|||
Runtime.getRuntime()
|
||||
.addShutdownHook(
|
||||
new Thread(
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
reporter.stopAsync().awaitTerminated();
|
||||
// Allow the LogManager to cleanup the loggers.
|
||||
DelayedShutdownLogManager.resetFinally();
|
||||
}
|
||||
() -> {
|
||||
reporter.stopAsync().awaitTerminated();
|
||||
// Allow the LogManager to cleanup the loggers.
|
||||
DelayedShutdownLogManager.resetFinally();
|
||||
}));
|
||||
|
||||
System.err.println("Send SIGINT (Ctrl+C) to stop sleeping.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue