diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-12 08:30:35 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-12 08:39:04 +0200 |
commit | 76a89b62274060452022ddf24a7685ee2f380cb4 (patch) | |
tree | ef924603de22efd026f519ab31fd8f5a6ff60f2f /vespaclient-container-plugin | |
parent | 7e7ebf7b527be1f163d497a41898e2252d878fe7 (diff) |
Replace all usages of Arrays.asList with List.of where possible.
Diffstat (limited to 'vespaclient-container-plugin')
-rw-r--r-- | vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java b/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java index f6e50ff1547..b877f9738ce 100644 --- a/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java +++ b/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java @@ -6,7 +6,6 @@ import com.yahoo.container.jdisc.HttpResponse; import org.junit.Test; import java.io.ByteArrayOutputStream; -import java.util.Arrays; import java.util.List; import static org.junit.Assert.assertEquals; @@ -20,15 +19,15 @@ import static org.junit.Assert.assertTrue; public class VersionsTestCase { private static final List<String> EMPTY = List.of(); - private static final List<String> ONE_TWO = Arrays.asList("1", "2"); - private static final List<String> ONE_THREE = Arrays.asList("1", "3"); - private static final List<String> TWO_THREE = Arrays.asList("3", "2"); - private static final List<String> ONE_NULL_THREE = Arrays.asList("1", null, "3"); + private static final List<String> ONE_TWO = List.of("1", "2"); + private static final List<String> ONE_THREE = List.of("1", "3"); + private static final List<String> TWO_THREE = List.of("3", "2"); + private static final List<String> ONE_NULL_THREE = List.of("1", null, "3"); private static final List<String> ONE_COMMA_THREE = List.of("1, 3"); - private static final List<String> ONE_EMPTY_THREE = Arrays.asList("1", "", "3"); + private static final List<String> ONE_EMPTY_THREE = List.of("1", "", "3"); private static final List<String> TOO_LARGE_NUMBER = List.of("1000000000"); - private static final List<String> THREE_TOO_LARGE_NUMBER = Arrays.asList("3", "1000000000"); - private static final List<String> THREE_COMMA_TOO_LARGE_NUMBER = Arrays.asList("3,1000000000"); + private static final List<String> THREE_TOO_LARGE_NUMBER = List.of("3", "1000000000"); + private static final List<String> THREE_COMMA_TOO_LARGE_NUMBER = List.of("3,1000000000"); private static final List<String> GARBAGE = List.of("garbage"); @Test |