diff --git a/src/java/org/apache/commons/lang/text/StrSubstitutor.java b/src/java/org/apache/commons/lang/text/StrSubstitutor.java index b3e4d082e..bc856d515 100644 --- a/src/java/org/apache/commons/lang/text/StrSubstitutor.java +++ b/src/java/org/apache/commons/lang/text/StrSubstitutor.java @@ -423,7 +423,8 @@ public class StrSubstitutor { pos++; } else { // found variable end marker - String varName = new String(chars, startPos + startMatchLen, pos - startPos - startMatchLen); + String varName = new String(chars, startPos + startMatchLen, + pos - startPos - startMatchLen); pos += endMatchLen; int endPos = pos;