ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r798843 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
Date Wed, 29 Jul 2009 10:26:40 GMT
Author: bodewig
Date: Wed Jul 29 10:26:39 2009
New Revision: 798843

URL: http://svn.apache.org/viewvc?rev=798843&view=rev
Log:
simplify

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java?rev=798843&r1=798842&r2=798843&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java Wed Jul 29 10:26:39
2009
@@ -267,11 +267,9 @@
         StringBuffer cleanedBuffer = new StringBuffer();
         for (int i = 0; i < buffer.length(); i++) {
             char ch = buffer.charAt(i);
-            if (ch == '\r') {
-                continue;
+            if (ch != '\r') {
+                cleanedBuffer.append(ch);
             }
-
-            cleanedBuffer.append(ch);
         }
         return cleanedBuffer.toString();
     }



Mime
View raw message