Browse Source

fixed findPlaceholderEndIndex to work with a custom suffix as well (SPR-7574)

3.0.x
Juergen Hoeller 15 years ago
parent
commit
eda6268d9d
  1. 2
      org.springframework.core/src/main/java/org/springframework/util/PropertyPlaceholderHelper.java

2
org.springframework.core/src/main/java/org/springframework/util/PropertyPlaceholderHelper.java

@ -190,7 +190,7 @@ public class PropertyPlaceholderHelper {
if (StringUtils.substringMatch(buf, index, this.placeholderSuffix)) { if (StringUtils.substringMatch(buf, index, this.placeholderSuffix)) {
if (withinNestedPlaceholder > 0) { if (withinNestedPlaceholder > 0) {
withinNestedPlaceholder--; withinNestedPlaceholder--;
index = index + this.placeholderPrefix.length() - 1; index = index + this.placeholderSuffix.length();
} }
else { else {
return index; return index;

Loading…
Cancel
Save