You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2009/07/29 12:26:40 UTC
svn commit: r798843 -
/ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
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();
}