commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1334205 - in /commons/proper/pool/trunk/src: main/java/org/apache/commons/pool2/PoolUtils.java test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
Date Fri, 04 May 2012 21:51:45 GMT
Author: sebb
Date: Fri May  4 21:51:44 2012
New Revision: 1334205

URL: http://svn.apache.org/viewvc?rev=1334205&view=rev
Log:
StringBuffer => Builder

Modified:
    commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java
    commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java

Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java?rev=1334205&r1=1334204&r2=1334205&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java (original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/PoolUtils.java Fri May
 4 21:51:44 2012
@@ -626,7 +626,7 @@ public final class PoolUtils {
          */
         @Override
         public String toString() {
-            final StringBuffer sb = new StringBuffer();
+            final StringBuilder sb = new StringBuilder();
             sb.append("ObjectPoolMinIdleTimerTask");
             sb.append("{minIdle=").append(minIdle);
             sb.append(", pool=").append(pool);
@@ -702,7 +702,7 @@ public final class PoolUtils {
          */
         @Override
         public String toString() {
-            final StringBuffer sb = new StringBuffer();
+            final StringBuilder sb = new StringBuilder();
             sb.append("KeyedObjectPoolMinIdleTimerTask");
             sb.append("{minIdle=").append(minIdle);
             sb.append(", key=").append(key);
@@ -877,7 +877,7 @@ public final class PoolUtils {
          */
         @Override
         public String toString() {
-            final StringBuffer sb = new StringBuffer();
+            final StringBuilder sb = new StringBuilder();
             sb.append("SynchronizedObjectPool");
             sb.append("{pool=").append(pool);
             sb.append('}');
@@ -1094,7 +1094,7 @@ public final class PoolUtils {
          */
         @Override
         public String toString() {
-            final StringBuffer sb = new StringBuffer();
+            final StringBuilder sb = new StringBuilder();
             sb.append("SynchronizedKeyedObjectPool");
             sb.append("{keyedPool=").append(keyedPool);
             sb.append('}');
@@ -1207,7 +1207,7 @@ public final class PoolUtils {
          */
         @Override
         public String toString() {
-            final StringBuffer sb = new StringBuffer();
+            final StringBuilder sb = new StringBuilder();
             sb.append("SynchronizedPoolableObjectFactory");
             sb.append("{factory=").append(factory);
             sb.append('}');
@@ -1322,7 +1322,7 @@ public final class PoolUtils {
          */
         @Override
         public String toString() {
-            final StringBuffer sb = new StringBuffer();
+            final StringBuilder sb = new StringBuilder();
             sb.append("SynchronizedKeyedPoolableObjectFactory");
             sb.append("{keyedFactory=").append(keyedFactory);
             sb.append('}');

Modified: commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java?rev=1334205&r1=1334204&r2=1334205&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
Fri May  4 21:51:44 2012
@@ -1015,7 +1015,7 @@ public class TestGenericKeyedObjectPool 
                     visitCount = tracker.getValidateCount();
                     visits[k] = visitCount;
                     if (visitCount < cycleCount || visitCount > cycleCount + 1){
-                        StringBuffer sb = new StringBuffer("Visits:");
+                        StringBuilder sb = new StringBuilder("Visits:");
                         for (int l = 0; l <= k; l++){
                             sb.append(visits[l]).append(' ');
                         }
@@ -1685,7 +1685,7 @@ public class TestGenericKeyedObjectPool 
 
     private String formatSettings(String title, String s, int i, String s0, boolean b0, String
s1, int i1, String s2, int i2, String s3, int i3,
             String s4, int i4, String s5, int i5, String s6, int i6, int zeroLength, int
oneLength, int twoLength){
-        StringBuffer sb = new StringBuffer(80);
+        StringBuilder sb = new StringBuilder(80);
         sb.append(title).append(' ');
         sb.append(s).append('=').append(i).append(' ');
         sb.append(s0).append('=').append(b0).append(' ');



Mime
View raw message