|
@@ -797,14 +797,16 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
|
|
reloadConfiguration();
|
|
reloadConfiguration();
|
|
}
|
|
}
|
|
|
|
|
|
- private static Pattern varPat = Pattern.compile("\\$\\{[^\\}\\$\u0020]+\\}");
|
|
|
|
- private static int MAX_SUBST = 20;
|
|
|
|
|
|
+ private static final Pattern VAR_PATTERN =
|
|
|
|
+ Pattern.compile("\\$\\{[^\\}\\$\u0020]+\\}");
|
|
|
|
+
|
|
|
|
+ private static final int MAX_SUBST = 20;
|
|
|
|
|
|
private String substituteVars(String expr) {
|
|
private String substituteVars(String expr) {
|
|
if (expr == null) {
|
|
if (expr == null) {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
- Matcher match = varPat.matcher("");
|
|
|
|
|
|
+ Matcher match = VAR_PATTERN.matcher("");
|
|
String eval = expr;
|
|
String eval = expr;
|
|
Set<String> evalSet = new HashSet<String>();
|
|
Set<String> evalSet = new HashSet<String>();
|
|
for(int s=0; s<MAX_SUBST; s++) {
|
|
for(int s=0; s<MAX_SUBST; s++) {
|