From 98f2e68e0bdc0417352013f4a1d25162cbd2bff9 Mon Sep 17 00:00:00 2001 From: stefansielaff Date: Tue, 2 Jul 2024 13:24:57 +0200 Subject: [PATCH] "Swap order of sysStrSubstitutor and envStrSubstitutor in substitute method" --- .../xwork2/config/providers/EnvsValueSubstitutor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/opensymphony/xwork2/config/providers/EnvsValueSubstitutor.java b/core/src/main/java/com/opensymphony/xwork2/config/providers/EnvsValueSubstitutor.java index 5fc1809b3..9e58fdeba 100644 --- a/core/src/main/java/com/opensymphony/xwork2/config/providers/EnvsValueSubstitutor.java +++ b/core/src/main/java/com/opensymphony/xwork2/config/providers/EnvsValueSubstitutor.java @@ -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); } }