Author: bayard Date: Sun Feb 7 07:08:58 2010 New Revision: 907384 URL: http://svn.apache.org/viewvc?rev=907384&view=rev Log: Removing JDK 1.2/1.3 protecting bugfix. We're now on JDK 1.5. LANG-590
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=907384&r1=907383&r2=907384&view=diff ============================================================================== --- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original) +++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Sun Feb 7 07:08:58 2010 @@ -909,10 +909,6 @@ 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); }