Merge branch '6.2.x'
This commit is contained in:
@@ -512,7 +512,7 @@ final class PlaceholderParser {
|
||||
|
||||
@Override
|
||||
public String resolve(PartResolutionContext resolutionContext) {
|
||||
String value = resolveRecursively(resolutionContext, this.key);
|
||||
String value = resolveRecursively(resolutionContext);
|
||||
if (value != null) {
|
||||
return value;
|
||||
}
|
||||
@@ -521,6 +521,17 @@ final class PlaceholderParser {
|
||||
}
|
||||
return resolutionContext.handleUnresolvablePlaceholder(this.key, text());
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private String resolveRecursively(PartResolutionContext resolutionContext) {
|
||||
if (!this.text().equals(this.key)) {
|
||||
String value = resolveRecursively(resolutionContext, this.text());
|
||||
if (value != null) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
return resolveRecursively(resolutionContext, this.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user