Author: ggregory
Date: Thu Aug 11 22:31:25 2005
New Revision: 232210

URL: http://svn.apache.org/viewcvs?rev=232210&view=rev
Log:
Clean up of one method from Nathan Beyer [EMAIL PROTECTED]

Modified:
    
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java

Modified: 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java?rev=232210&r1=232209&r2=232210&view=diff
==============================================================================
--- 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
 (original)
+++ 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
 Thu Aug 11 22:31:25 2005
@@ -3210,11 +3210,7 @@
             if (str.charAt(lastIdx - 1) == CharUtils.CR) {
                 lastIdx--;
             }
-        } else if (last == CharUtils.CR) {
-            // why is this block empty?
-            // just to skip incrementing the index?
-          ;
-        } else {
+        } else if (last != CharUtils.CR) {
             lastIdx++;
         }
         return str.substring(0, lastIdx);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to