archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1370986 - in /archiva/redback/redback-components/trunk: expression-evaluator/src/main/java/org/apache/archiva/redback/components/evaluator/ spring-cache/spring-cache-providers/spring-cache-oscache/src/main/java/org/apache/archiva/redback/c...
Date Wed, 08 Aug 2012 21:53:55 GMT
Author: olamy
Date: Wed Aug  8 21:53:54 2012
New Revision: 1370986

URL: http://svn.apache.org/viewvc?rev=1370986&view=rev
Log:
use StringBuilder rather than StringBuffer

Modified:
    archiva/redback/redback-components/trunk/expression-evaluator/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
    archiva/redback/redback-components/trunk/spring-cache/spring-cache-providers/spring-cache-oscache/src/main/java/org/apache/archiva/redback/components/cache/oscache/OsCacheCache.java
    archiva/redback/redback-components/trunk/spring-cache/spring-cache-test/src/main/java/org/apache/archiva/redback/components/cache/test/EnglishNumberFormat.java
    archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Basic.java
    archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Child.java
    archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Parent.java
    archiva/redback/redback-components/trunk/spring-registry/spring-registry-commons/src/main/java/org/apache/archiva/redback/components/registry/commons/CommonsConfigurationRegistry.java

Modified: archiva/redback/redback-components/trunk/expression-evaluator/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
URL: http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/expression-evaluator/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java?rev=1370986&r1=1370985&r2=1370986&view=diff
==============================================================================
--- archiva/redback/redback-components/trunk/expression-evaluator/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
(original)
+++ archiva/redback/redback-components/trunk/expression-evaluator/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
Wed Aug  8 21:53:54 2012
@@ -79,7 +79,7 @@ public class DefaultExpressionEvaluator
         int offset = 0;
         String expression;
         String value;
-        StringBuffer expanded = new StringBuffer();
+        StringBuilder expanded = new StringBuilder();
 
         while ( mat.find( offset ) )
         {

Modified: archiva/redback/redback-components/trunk/spring-cache/spring-cache-providers/spring-cache-oscache/src/main/java/org/apache/archiva/redback/components/cache/oscache/OsCacheCache.java
URL: http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/spring-cache/spring-cache-providers/spring-cache-oscache/src/main/java/org/apache/archiva/redback/components/cache/oscache/OsCacheCache.java?rev=1370986&r1=1370985&r2=1370986&view=diff
==============================================================================
--- archiva/redback/redback-components/trunk/spring-cache/spring-cache-providers/spring-cache-oscache/src/main/java/org/apache/archiva/redback/components/cache/oscache/OsCacheCache.java
(original)
+++ archiva/redback/redback-components/trunk/spring-cache/spring-cache-providers/spring-cache-oscache/src/main/java/org/apache/archiva/redback/components/cache/oscache/OsCacheCache.java
Wed Aug  8 21:53:54 2012
@@ -307,7 +307,7 @@ public class OsCacheCache
         {
             return null;
         }
-        StringBuffer stringBuffer = new StringBuffer();
+        StringBuilder stringBuffer = new StringBuilder();
         for ( Iterator iterator = this.getCacheEventListeners().iterator(); iterator.hasNext();
)
         {
             stringBuffer.append( iterator.next() ).append( ',' );

Modified: archiva/redback/redback-components/trunk/spring-cache/spring-cache-test/src/main/java/org/apache/archiva/redback/components/cache/test/EnglishNumberFormat.java
URL: http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/spring-cache/spring-cache-test/src/main/java/org/apache/archiva/redback/components/cache/test/EnglishNumberFormat.java?rev=1370986&r1=1370985&r2=1370986&view=diff
==============================================================================
--- archiva/redback/redback-components/trunk/spring-cache/spring-cache-test/src/main/java/org/apache/archiva/redback/components/cache/test/EnglishNumberFormat.java
(original)
+++ archiva/redback/redback-components/trunk/spring-cache/spring-cache-test/src/main/java/org/apache/archiva/redback/components/cache/test/EnglishNumberFormat.java
Wed Aug  8 21:53:54 2012
@@ -105,13 +105,13 @@ public class EnglishNumberFormat
 
     class NumberText
     {
-        private StringBuffer txt;
+        private StringBuilder txt;
 
         private String potentialMulti = null;
 
         public NumberText()
         {
-            txt = new StringBuffer();
+            txt = new StringBuilder();
         }
 
         public void setPotentialMultiple( String multiple )

Modified: archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Basic.java
URL: http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Basic.java?rev=1370986&r1=1370985&r2=1370986&view=diff
==============================================================================
--- archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Basic.java
(original)
+++ archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Basic.java
Wed Aug  8 21:53:54 2012
@@ -131,9 +131,9 @@ public class Basic implements java.io.Se
     /**
      * Method toString
      */
-    public java.lang.String toString()
+    public String toString()
     {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append( "id = '" );
         buf.append( getId() + "'" );
         return buf.toString();

Modified: archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Child.java
URL: http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Child.java?rev=1370986&r1=1370985&r2=1370986&view=diff
==============================================================================
--- archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Child.java
(original)
+++ archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Child.java
Wed Aug  8 21:53:54 2012
@@ -134,9 +134,9 @@ public class Child
     /**
      * Method toString
      */
-    public java.lang.String toString()
+    public String toString()
     {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append( "id = '" );
         buf.append( getId() + "'" );
         return buf.toString();

Modified: archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Parent.java
URL: http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Parent.java?rev=1370986&r1=1370985&r2=1370986&view=diff
==============================================================================
--- archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Parent.java
(original)
+++ archiva/redback/redback-components/trunk/spring-jdo2/src/test/java/org/apache/archiva/redback/components/jdo/Parent.java
Wed Aug  8 21:53:54 2012
@@ -205,9 +205,9 @@ public class Parent
     /**
      * Method toString
      */
-    public java.lang.String toString()
+    public String toString()
     {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append( "id = '" );
         buf.append( getId() + "'" );
         return buf.toString();

Modified: archiva/redback/redback-components/trunk/spring-registry/spring-registry-commons/src/main/java/org/apache/archiva/redback/components/registry/commons/CommonsConfigurationRegistry.java
URL: http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/spring-registry/spring-registry-commons/src/main/java/org/apache/archiva/redback/components/registry/commons/CommonsConfigurationRegistry.java?rev=1370986&r1=1370985&r2=1370986&view=diff
==============================================================================
--- archiva/redback/redback-components/trunk/spring-registry/spring-registry-commons/src/main/java/org/apache/archiva/redback/components/registry/commons/CommonsConfigurationRegistry.java
(original)
+++ archiva/redback/redback-components/trunk/spring-registry/spring-registry-commons/src/main/java/org/apache/archiva/redback/components/registry/commons/CommonsConfigurationRegistry.java
Wed Aug  8 21:53:54 2012
@@ -98,7 +98,7 @@ public class CommonsConfigurationRegistr
 
     public String dump()
     {
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         buffer.append( "Configuration Dump." );
         for ( Iterator i = configuration.getKeys(); i.hasNext(); )
         {



Mime
View raw message