diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-11 15:09:55 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-11 21:04:22 +0200 |
commit | 2d6bbe0b8bff09d105b77161c1d26a00ce43bf0c (patch) | |
tree | f9948a9904d837960887e81a956b29f92d918002 /client/src/main/java | |
parent | 6923743ed320ce339727ad57f6fc2da5f82f5e3f (diff) |
Unify on List.of
Diffstat (limited to 'client/src/main/java')
-rw-r--r-- | client/src/main/java/ai/vespa/client/dsl/Sources.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/main/java/ai/vespa/client/dsl/Sources.java b/client/src/main/java/ai/vespa/client/dsl/Sources.java index b6dd1b06536..cecf27aa240 100644 --- a/client/src/main/java/ai/vespa/client/dsl/Sources.java +++ b/client/src/main/java/ai/vespa/client/dsl/Sources.java @@ -3,7 +3,6 @@ package ai.vespa.client.dsl; import java.util.ArrayList; -import java.util.Collections; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; @@ -19,7 +18,7 @@ public class Sources { } Sources(Select select, String searchDefinition) { - this(select, Collections.singletonList(searchDefinition)); + this(select, List.of(searchDefinition)); } Sources(Select select, String searchDefinition, String... others) { |