Improving error message when recursion fails TTL in replaceEachRepeatedly. LANG-686
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1151345 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
64dd0a070b
commit
a7fe1f5018
|
@ -4028,7 +4028,8 @@ public class StringUtils {
|
|||
|
||||
// if recursing, this shouldn't be less than 0
|
||||
if (timeToLive < 0) {
|
||||
throw new IllegalStateException("TimeToLive of " + timeToLive + " is less than 0: " + text);
|
||||
throw new IllegalStateException("Output of one loop is the input of another; " +
|
||||
"protecting from potential StackOverflowError");
|
||||
}
|
||||
|
||||
int searchLength = searchList.length;
|
||||
|
|
Loading…
Reference in New Issue