aboutsummaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2023-10-11 12:13:21 +0200
committerGitHub <noreply@github.com>2023-10-11 12:13:21 +0200
commit9922b8c1681a817d9a9c84d3a967a5120e8c0599 (patch)
tree9c686c10318a52348fe6ec8fe4d74d356be88b02 /document
parentc4face9aeb327f059dc1613b416713a275d807c9 (diff)
Arrays.asList -> List.of
Diffstat (limited to 'document')
-rwxr-xr-xdocument/src/test/java/com/yahoo/document/datatypes/ArrayTestCase.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/document/src/test/java/com/yahoo/document/datatypes/ArrayTestCase.java b/document/src/test/java/com/yahoo/document/datatypes/ArrayTestCase.java
index c801454bf94..4c4b9f9fc78 100755
--- a/document/src/test/java/com/yahoo/document/datatypes/ArrayTestCase.java
+++ b/document/src/test/java/com/yahoo/document/datatypes/ArrayTestCase.java
@@ -217,10 +217,10 @@ public class ArrayTestCase {
assertEquals(new StringFieldValue("apple"), subArray.get(1));
- assertEquals(false, array.containsAll(Arrays.asList(new StringFieldValue("bob"))));
- assertEquals(true, array.containsAll(Arrays.asList(new StringFieldValue("foo"), new StringFieldValue("boo"), new StringFieldValue("apple"))));
+ assertEquals(false, array.containsAll(List.of(new StringFieldValue("bob"))));
+ assertEquals(true, array.containsAll(List.of(new StringFieldValue("foo"), new StringFieldValue("boo"), new StringFieldValue("apple"))));
- array.removeAll(Arrays.asList(new StringFieldValue("foo"), new StringFieldValue("boo")));
+ array.removeAll(List.of(new StringFieldValue("foo"), new StringFieldValue("boo")));
assertEquals(1, array.size());
assertEquals(1, list.size());
@@ -249,7 +249,7 @@ public class ArrayTestCase {
assertFalse(it.hasNext());
}
- array.addAll(Arrays.asList(new StringFieldValue("microsoft"), new StringFieldValue("google")));
+ array.addAll(List.of(new StringFieldValue("microsoft"), new StringFieldValue("google")));
assertEquals(4, array.size());
assertEquals(4, list.size());