diff options
author | Jon Bratseth <bratseth@vespa.ai> | 2023-06-13 17:54:21 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@vespa.ai> | 2023-06-13 17:54:21 +0200 |
commit | bdfab3d8f9aa0e913b0d5300a2053eb7f0884823 (patch) | |
tree | d7272de143a2480960ce9af94bce97831cfc8d24 /container-core | |
parent | 3ff15111ce265956777dcb861867388b87fda1a8 (diff) |
Use List.of
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java b/container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java index 246286ea1e6..bac514266cb 100644 --- a/container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java +++ b/container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java @@ -16,7 +16,6 @@ import com.yahoo.processing.response.Streamed; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayDeque; -import java.util.Collections; import java.util.Deque; import java.util.List; import java.util.concurrent.CompletableFuture; @@ -591,7 +590,7 @@ public abstract class AsynchronousSectionedRenderer<RESPONSE extends Response> e @Override public List<Data> asList() { - return Collections.singletonList(trueTopLevel); + return List.of(trueTopLevel); } @Override |