Removing JDK 1.2/1.3 protecting bugfix. We're now on JDK 1.5. LANG-590
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907384 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
779828c9a2
commit
ab759f7d06
|
@ -909,10 +909,6 @@ public class StringUtils {
|
|||
if (str == null || searchStr == null) {
|
||||
return -1;
|
||||
}
|
||||
// JDK1.2/JDK1.3 have a bug, when startPos > str.length for "", hence
|
||||
if (searchStr.length() == 0 && startPos >= str.length()) {
|
||||
return str.length();
|
||||
}
|
||||
return str.indexOf(searchStr, startPos);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue