commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1363111 - /commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/CatalogBase.java
Date Wed, 18 Jul 2012 20:58:40 GMT
Author: simonetripodi
Date: Wed Jul 18 20:58:40 2012
New Revision: 1363111

URL: http://svn.apache.org/viewvc?rev=1363111&view=rev
Log:
no reason to concatenate strings when using a StringBuffer

Modified:
    commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/CatalogBase.java

Modified: commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/CatalogBase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/CatalogBase.java?rev=1363111&r1=1363110&r2=1363111&view=diff
==============================================================================
--- commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/CatalogBase.java
(original)
+++ commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/CatalogBase.java
Wed Jul 18 20:58:40 2012
@@ -121,8 +121,7 @@ public class CatalogBase<K, V, C extends
     @Override
     public String toString() {
         Iterator<String> names = getNames();
-        StringBuffer str =
-            new StringBuffer("[" + this.getClass().getName() + ": ");
+        StringBuffer str = new StringBuffer("[").append(this.getClass().getName()).append(":
");
 
         while (names.hasNext()) {
             str.append(names.next());



Mime
View raw message