commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1187661 - /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/ValidatorAction.java
Date Sat, 22 Oct 2011 06:57:52 GMT
Author: dbrosius
Date: Sat Oct 22 06:57:52 2011
New Revision: 1187661

URL: http://svn.apache.org/viewvc?rev=1187661&view=rev
Log:
use StringBuffers correctly

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/ValidatorAction.java

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/ValidatorAction.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/ValidatorAction.java?rev=1187661&r1=1187660&r2=1187661&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/ValidatorAction.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/ValidatorAction.java
Sat Oct 22 06:57:52 2011
@@ -422,7 +422,7 @@ public class ValidatorAction implements 
         try {
             String line = null;
             while ((line = reader.readLine()) != null) {
-                buffer.append(line + "\n");
+                buffer.append(line).append("\n");
             }
 
         } catch(IOException e) {



Mime
View raw message