"Swap order of sysStrSubstitutor and envStrSubstitutor in substitute method"

This commit is contained in:
stefansielaff
2024-07-02 13:24:57 +02:00
parent 8b22f7170f
commit 98f2e68e0b
@@ -46,7 +46,7 @@ public class EnvsValueSubstitutor implements ValueSubstitutor {
public String substitute(String value) {
LOG.debug("Substituting value {} with proper System variable or environment variable", value);
String substituted = sysStrSubstitutor.replace(value);
return envStrSubstitutor.replace(substituted);
String substituted = envStrSubstitutor.replace(value);
return sysStrSubstitutor.replace(substituted);
}
}