Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private InnerInterpolator createInterpolator(

Map<String, Optional<String>> cache = new HashMap<>();
Comment thread
Pankraz76 marked this conversation as resolved.
Function<String, Optional<String>> ucb =
v -> Optional.ofNullable(callback(model, projectDir, request, problems, v));
v -> Optional.ofNullable(doCallback(model, projectDir, request, problems, v));
UnaryOperator<String> cb = v -> cache.computeIfAbsent(v, ucb).orElse(null);
BinaryOperator<String> postprocessor = (e, v) -> postProcess(projectDir, request, e, v);
return value -> {
Expand All @@ -129,19 +129,6 @@ protected List<String> getProjectPrefixes(ModelBuilderRequest request) {
: PROJECT_PREFIXES_3_1;
}

String callback(
Model model,
Path projectDir,
ModelBuilderRequest request,
ModelProblemCollector problems,
Comment thread
Pankraz76 marked this conversation as resolved.
String expression) {
String value = doCallback(model, projectDir, request, problems, expression);
if (value != null) {
// value = postProcess(projectDir, request, expression, value);
Comment thread
Pankraz76 marked this conversation as resolved.
}
return value;
}

private String postProcess(Path projectDir, ModelBuilderRequest request, String expression, String value) {
// path translation
String exp = unprefix(expression, getProjectPrefixes(request));
Expand Down
Loading