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-04 22:42:13 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2022-12-04 22:42:13 +0100
commitfd54b4e4b136b05b67b471dca3ca6ce3dd116710 (patch)
tree88ab77cc41620eb2b8639b10b7edd1e57b901f12 /config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java
parentfae49834f53500587921196e86ee4af4c670d8c9 (diff)
Revert collect(Collectors.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 268e0b17b24..b5007bba494 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)
- .toList();
+ .collect(Collectors.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).toList();;
+ this.fields = fields.stream().flatMap(Collection::stream).collect(Collectors.toList());;
}
}