commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1334515 - in /commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2: MethodCall.java Waiter.java impl/TestGenericKeyedObjectPool.java impl/TestGenericObjectPool.java
Date Sat, 05 May 2012 21:57:07 GMT
Author: sebb
Date: Sat May  5 21:57:06 2012
New Revision: 1334515

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

Modified:
    commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/MethodCall.java
    commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/Waiter.java
    commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
    commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java

Modified: commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/MethodCall.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/MethodCall.java?rev=1334515&r1=1334514&r2=1334515&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/MethodCall.java (original)
+++ commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/MethodCall.java Sat May
 5 21:57:06 2012
@@ -101,7 +101,7 @@ public class MethodCall {
 
     @Override
     public String toString() {
-        final StringBuffer sb = new StringBuffer();
+        final StringBuilder sb = new StringBuilder();
         sb.append("MethodCall");
         sb.append("{name='").append(name).append('\'');
         if (!params.isEmpty()) {

Modified: commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/Waiter.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/Waiter.java?rev=1334515&r1=1334514&r2=1334515&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/Waiter.java (original)
+++ commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/Waiter.java Sat May 
5 21:57:06 2012
@@ -148,7 +148,7 @@ public class Waiter {
     
     @Override
     public String toString() {
-        StringBuffer buff = new StringBuffer();
+        StringBuilder buff = new StringBuilder();
         buff.append("ID = " + id + "\n");
         buff.append("valid = " + valid + "\n");
         buff.append("active = " + active + "\n");

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=1334515&r1=1334514&r2=1334515&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
Sat May  5 21:57:06 2012
@@ -138,7 +138,7 @@ public class TestGenericKeyedObjectPool 
                 null);
         // There should be no registered pools at this point
         int registeredPoolCount = result.size();
-        StringBuffer msg = new StringBuffer("Current pool is: ");
+        StringBuilder msg = new StringBuilder("Current pool is: ");
         msg.append(poolName);
         msg.append("  Still open pools are: ");
         for (ObjectName name : result) {

Modified: commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java?rev=1334515&r1=1334514&r2=1334515&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java
Sat May  5 21:57:06 2012
@@ -93,7 +93,7 @@ public class TestGenericObjectPool exten
                 "org.apache.commoms.pool2:type=GenericObjectPool,*"), null);
         // There should be no registered pools at this point
         int registeredPoolCount = result.size();
-        StringBuffer msg = new StringBuffer("Current pool is: ");
+        StringBuilder msg = new StringBuilder("Current pool is: ");
         msg.append(poolName);
         msg.append("  Still open pools are: ");
         for (ObjectName name : result) {



Mime
View raw message