From ba115f3c6b1642bf7d6e9b4ab8d908afab230abd Mon Sep 17 00:00:00 2001 From: Yeser Amer Date: Wed, 10 Jul 2024 18:02:48 +0200 Subject: [PATCH] JAVA 11 API --- .../java/org/kie/dmn/core/compiler/ImportDMNResolverUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ImportDMNResolverUtil.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ImportDMNResolverUtil.java index 285adbf8f84..a738efe94be 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ImportDMNResolverUtil.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ImportDMNResolverUtil.java @@ -74,7 +74,7 @@ public static Either resolveImportDMN(Import importElement, Colle } else { List usingNSandName = matchingDMNList.stream() .filter(dmn -> idExtractor.apply(dmn).getLocalPart().equals(importModelName)) - .toList(); + .collect(Collectors.toList()); if (usingNSandName.size() == 1) { LOGGER.debug("DMN Model with name={} and namespace={} successfully imported a DMN " + "with namespace={} name={} locationURI={}, modelName={}",