aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-12-02 22:37:16 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-12-02 22:37:16 +0000
commit6954a0d10fddb9bee32931ba69b2d4b427ee71e2 (patch)
tree21e6aad059615f27c6357227e6af608a7b965ec5 /config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java
parentafcf1bb71cb7b87a03149d197f724cfc7603ef92 (diff)
collect(Collectors.toList()) -> toList()
Diffstat (limited to 'config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java')
-rw-r--r--config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java b/config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java
index b5007bba494..268e0b17b24 100644
--- a/config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java
+++ b/config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java
@@ -175,7 +175,7 @@ public class SummaryTestCase {
tests.forEach(testValue -> {
var actualFields = testValue.summary.getSummaryFields().values().stream()
.map(FieldBase::getName)
- .collect(Collectors.toList());
+ .toList();
assertEquals(Optional.ofNullable(testValue.parent),
testValue.summary.inherited(),
testValue.summary.getName() + (testValue.parent == null ? " does not inherit anything" : " inherits " + testValue.parent.getName()));
@@ -278,7 +278,7 @@ public class SummaryTestCase {
public TestValue(DocumentSummary summary, DocumentSummary parent, List<List<String>> fields) {
this.summary = summary;
this.parent = parent;
- this.fields = fields.stream().flatMap(Collection::stream).collect(Collectors.toList());;
+ this.fields = fields.stream().flatMap(Collection::stream).toList();;
}
}