diff options
Diffstat (limited to 'integration')
-rw-r--r-- | integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Files.java | 2 | ||||
-rw-r--r-- | integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Path.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Files.java b/integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Files.java index 834c772132e..3f6d6b2d8d8 100644 --- a/integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Files.java +++ b/integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Files.java @@ -42,7 +42,7 @@ public class Files { .stream() .filter(file -> file.getParent().getPath().endsWith(dir.getRelative())) .map(file -> PsiManager.getInstance(project).findFile(file)) - .toList(); + .collect(Collectors.toList()); } } diff --git a/integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Path.java b/integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Path.java index c84f9fbca2e..ce889c24fea 100644 --- a/integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Path.java +++ b/integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Path.java @@ -52,7 +52,7 @@ public final class Path { * Add path elements by splitting based on delimiter and appending to elements. */ private static List<String> elementsOf(String path, String delimiter) { - return Arrays.stream(path.split(delimiter)).filter(e -> !"".equals(e)).toList(); + return Arrays.stream(path.split(delimiter)).filter(e -> !"".equals(e)).collect(Collectors.toList()); } /** |