maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1306864 - in /maven/scm/trunk: maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/ maven-scm-api/src/main/java/org/apache/maven/scm/util/ maven-scm-providers/maven-scm-providers-git/maven-scm-provider-git-commons/src/main/j...
Date Thu, 29 Mar 2012 13:43:19 GMT
Author: olamy
Date: Thu Mar 29 13:43:18 2012
New Revision: 1306864

URL: http://svn.apache.org/viewvc?rev=1306864&view=rev
Log:
git  provider and mojo use StringBuilder rather than StringBuffer

Modified:
    maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/ChangeLogSet.java
    maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/util/ThreadSafeDateFormat.java
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-git-commons/src/main/java/org/apache/maven/scm/provider/git/repository/GitScmProviderRepository.java
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogCommand.java
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogConsumer.java

Modified: maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/ChangeLogSet.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/ChangeLogSet.java?rev=1306864&r1=1306863&r2=1306864&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/ChangeLogSet.java
(original)
+++ maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/ChangeLogSet.java
Thu Mar 29 13:43:18 2012
@@ -154,7 +154,7 @@ public class ChangeLogSet
             encodingString = DEFAULT_ENCODING;
         }
 
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         String pattern = "yyyyMMdd HH:mm:ss z";
         SimpleDateFormat formatter = new SimpleDateFormat( pattern );
 

Modified: maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/util/ThreadSafeDateFormat.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/util/ThreadSafeDateFormat.java?rev=1306864&r1=1306863&r2=1306864&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/util/ThreadSafeDateFormat.java
(original)
+++ maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/util/ThreadSafeDateFormat.java
Thu Mar 29 13:43:18 2012
@@ -65,7 +65,7 @@ public class ThreadSafeDateFormat
         return m_formatCache.get().get();
     }
 
-    public StringBuffer format( Date date, StringBuffer toAppendTo, FieldPosition fieldPosition
)
+    public StringBuilder format( Date date, StringBuilder toAppendTo, FieldPosition fieldPosition
)
     {
         return getDateFormat().format( date, toAppendTo, fieldPosition );
     }

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-git-commons/src/main/java/org/apache/maven/scm/provider/git/repository/GitScmProviderRepository.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-git-commons/src/main/java/org/apache/maven/scm/provider/git/repository/GitScmProviderRepository.java?rev=1306864&r1=1306863&r2=1306864&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-git-commons/src/main/java/org/apache/maven/scm/provider/git/repository/GitScmProviderRepository.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-git-commons/src/main/java/org/apache/maven/scm/provider/git/repository/GitScmProviderRepository.java
Thu Mar 29 13:43:18 2012
@@ -419,7 +419,7 @@ public class GitScmProviderRepository
                     repoUrl.setPort( hostAndPortMatcher.group( 2 ) );
                 }
 
-                StringBuffer computedUrl = new StringBuffer();
+                StringBuilder computedUrl = new StringBuilder();
                 if ( hostAndPortMatcher.group( hostAndPortMatcher.groupCount() - 1 ) != null
)
                 {
                     computedUrl.append( hostAndPortMatcher.group( hostAndPortMatcher.groupCount()
- 1 ) );

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogCommand.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogCommand.java?rev=1306864&r1=1306863&r2=1306864&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogCommand.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogCommand.java
Thu Mar 29 13:43:18 2012
@@ -132,7 +132,7 @@ public class GitChangeLogCommand
 
         if ( startVersion != null || endVersion != null )
         {
-            StringBuffer versionRange = new StringBuffer();
+            StringBuilder versionRange = new StringBuilder();
             
             if ( startVersion != null )
             {

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogConsumer.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogConsumer.java?rev=1306864&r1=1306863&r2=1306864&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogConsumer.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/changelog/GitChangeLogConsumer.java
Thu Mar 29 13:43:18 2012
@@ -157,7 +157,7 @@ public class GitChangeLogConsumer
     /**
      * The current comment of the entry being processed by the parser
      */
-    private StringBuffer currentComment;
+    private StringBuilder currentComment;
 
     /**
      * The regular expression used to match header lines
@@ -466,7 +466,7 @@ public class GitChangeLogConsumer
         {
             if ( currentComment == null )
             {
-                currentComment = new StringBuffer();
+                currentComment = new StringBuilder();
             }
             else
             {



Mime
View raw message