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:
Henri Yandell 2010-02-07 07:08:58 +00:00
parent 779828c9a2
commit ab759f7d06
1 changed files with 0 additions and 4 deletions

View File

@ -909,10 +909,6 @@ public static int indexOf(String str, String searchStr, int startPos) {
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);
}