maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r660005 - /maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/edit/PerforceEditConsumer.java
Date Sun, 25 May 2008 18:08:35 GMT
Author: hboutemy
Date: Sun May 25 11:08:35 2008
New Revision: 660005

URL: http://svn.apache.org/viewvc?rev=660005&view=rev
Log:
restored JDK 1.4 compatibility: use StringBuffer instead of StringBuilder

Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/edit/PerforceEditConsumer.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/edit/PerforceEditConsumer.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/edit/PerforceEditConsumer.java?rev=660005&r1=660004&r2=660005&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/edit/PerforceEditConsumer.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/edit/PerforceEditConsumer.java
Sun May 25 11:08:35 2008
@@ -26,7 +26,6 @@
 
 import java.util.ArrayList;
 import java.util.List;
-import java.io.File;
 
 /**
  * @author Mike Perham
@@ -47,7 +46,7 @@
     private RE revisionRegexp;
 
     private boolean errors = false;
-    private StringBuilder errorMessage = new StringBuilder();
+    private StringBuffer errorMessage = new StringBuffer();
 
     public PerforceEditConsumer()
     {
@@ -92,10 +91,11 @@
     {
         errors = true;
         output.println( line );
-        if(errorMessage.length() > 0) {
-            errorMessage.append(System.getProperty("line.separator"));
+        if ( errorMessage.length() > 0 )
+        {
+            errorMessage.append( System.getProperty( "line.separator" ) );
         }
-        errorMessage.append(line);
+        errorMessage.append( line );
     }
 
     public boolean isSuccess()
@@ -103,7 +103,8 @@
         return !errors;
     }
 
-    public String getErrorMessage() {
+    public String getErrorMessage()
+    {
         return errorMessage.toString();
     }
 



Mime
View raw message