Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofusco committed Sep 23, 2024
1 parent cf3116a commit 931395d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ public List<String> loadFromInputStreamWithTemplates(Resource resource,
}

private String compileResource(Resource resource, DecisionTableConfiguration configuration) {
String resourcePath = resource.getSourcePath();
return resourcePath == null ?
internalCompileResource(resource, configuration) :
compiledDtablesCache.computeIfAbsent(resourcePath, path -> internalCompileResource(resource, configuration));
if (resource.getSourcePath() == null) {
return internalCompileResource(resource, configuration);
}
String resourceKey = resource.getSourcePath() + "?trimCell=" + configuration.isTrimCell() + "&worksheetName=" + configuration.getWorksheetName();
return compiledDtablesCache.computeIfAbsent(resourceKey, path -> internalCompileResource(resource, configuration));
}

private String internalCompileResource(Resource resource, DecisionTableConfiguration configuration) throws UncheckedIOException {
Expand Down

0 comments on commit 931395d

Please sign in to comment.