summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-01-17 22:41:28 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2023-01-17 22:49:38 +0100
commit16ea68abd238c91016df203d37047e5dd3037144 (patch)
treed8a5eb4df6dc74bfe010fd3179def2b90c0d164a /config
parent69a61e135e5cd7da5b14c18bc2cfe4785a8bee81 (diff)
Unify on Streams.toList()
Diffstat (limited to 'config')
-rw-r--r--config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java b/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java
index e2b53879d92..9a360c3d350 100644
--- a/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java
+++ b/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java
@@ -18,7 +18,6 @@ import java.util.logging.Logger;
import static java.util.logging.Level.FINE;
import static java.util.logging.Level.SEVERE;
import static java.util.logging.Level.WARNING;
-import static java.util.stream.Collectors.toList;
/**
* Used for subscribing to one or more configs. Can optionally be given a {@link ConfigSource} for the configs
@@ -495,7 +494,7 @@ public class ConfigSubscriber implements AutoCloseable {
log.log(WARNING, stackTraceAtConstruction,
() -> String.format("%s: Closing subscription from finalizer() - close() has not been called (keys=%s)",
super.toString(),
- subscriptionHandles.stream().map(handle -> handle.subscription().getKey().toString()).collect(toList())));
+ subscriptionHandles.stream().map(handle -> handle.subscription().getKey().toString()).toList()));
close();
}
} finally {