Skip to content

Commit

Permalink
dependabot.yml fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yesamer committed Jul 9, 2024
1 parent 270ffbd commit b24c3e0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public static <T> Either<String, T> resolveImportDMN(Import importElement, Colle
importNamespace, importName, importLocationURI, importModelName);

List<T> matchingDmns = dmns.stream()
.filter(m -> idExtractor.apply(m).getNamespaceURI().equals(importNamespace))
.collect(Collectors.toList());
.filter(m -> idExtractor.apply(m).getNamespaceURI().equals(importNamespace))
.collect(Collectors.toList());
if (matchingDmns.size() == 1) {
T located = matchingDmns.get(0);
// Check if the located DMN Model in the NS, correspond for the import `drools:modelName`.
Expand All @@ -70,7 +70,7 @@ public static <T> Either<String, T> resolveImportDMN(Import importElement, Colle
}
} else {
List<T> usingNSandName = matchingDmns.stream()
.filter(m -> idExtractor.apply(m).getLocalPart().equals(importModelName))
.filter(dmn -> idExtractor.apply(dmn).getLocalPart().equals(importModelName))
.toList();
if (usingNSandName.size() == 1) {
LOGGER.debug("DMN Import with namespace={} name={} locationURI={}, modelName={} resolved!",
Expand All @@ -85,9 +85,9 @@ public static <T> Either<String, T> resolveImportDMN(Import importElement, Colle
} else {
LOGGER.error("Found {} number of collision resolving an Imported DMN with namespace={} name={} locationURI={}, modelName={}",
usingNSandName.size(), importNamespace, importName, importLocationURI, importModelName);
return Either.ofLeft(String.format("Found a collision resolving an Imported DMN with %s namespace, %s " +
"name and modelName %s. There are %s DMN files with the same namespace in your project. Please " +
"change the DMN namespaces and make them unique to fix this issue.",
return Either.ofLeft(String.format("Found a collision resolving an Imported DMN with %s namespace, " +
"%s name and modelName %s. There are %s DMN files with the same namespace in your project. " +
"Please change the DMN namespaces and make them unique to fix this issue.",
importNamespace, importName, importModelName, usingNSandName.size()));
}
}
Expand Down

0 comments on commit b24c3e0

Please sign in to comment.