Simplify if statements

See gh-17884
This commit is contained in:
thelproad
2019-08-16 16:52:40 +08:00
committed by Stephane Nicoll
parent fc0cee5ea7
commit 9c1f503e46
3 changed files with 3 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ public abstract class SystemPropertyUtils {
placeholder = parseStringValue(properties, value, placeholder, visitedPlaceholders);
// Now obtain the value for the fully resolved key...
String propVal = resolvePlaceholder(properties, value, placeholder);
if (propVal == null && VALUE_SEPARATOR != null) {
if (propVal == null) {
int separatorIndex = placeholder.indexOf(VALUE_SEPARATOR);
if (separatorIndex != -1) {
String actualPlaceholder = placeholder.substring(0, separatorIndex);