From fd54b4e4b136b05b67b471dca3ca6ce3dd116710 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Sun, 4 Dec 2022 22:42:13 +0100 Subject: Revert collect(Collectors.toList()) --- config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config-model/src/test/java/com/yahoo/schema/SummaryTestCase.java') 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> 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());; } } -- cgit v1.2.3