commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1488513 - in /commons/proper/chain/trunk: configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ core/src/test/java/org/apache/commons/chain2/generic/ core/src/test/java/org/apache/commons/chain2/impl/ web/src/test/java/org/...
Date Sat, 01 Jun 2013 12:39:42 GMT
Author: britter
Date: Sat Jun  1 12:39:42 2013
New Revision: 1488513

URL: http://svn.apache.org/r1488513
Log:
Replace StringBuffer with StringBuilder

Modified:
    commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParser2TestCase.java
    commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParserTestCase.java
    commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/DispatchLookupCommandTestCase.java
    commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/LookupCommandTestCase.java
    commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ChainBaseTestCase.java
    commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/NonDelegatingCommand.java
    commons/proper/chain/trunk/web/src/test/java/org/apache/commons/chain2/web/servlet/MockHttpServletRequest.java

Modified: commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParser2TestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParser2TestCase.java?rev=1488513&r1=1488512&r2=1488513&view=diff
==============================================================================
--- commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParser2TestCase.java
(original)
+++ commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParser2TestCase.java
Sat Jun  1 12:39:42 2013
@@ -320,7 +320,7 @@ public class ConfigParser2TestCase {
 
     // Verify the contents of the execution log
     protected void checkExecuteLog(String expected) {
-        StringBuffer log = (StringBuffer) context.get("log");
+        StringBuilder log = (StringBuilder) context.get("log");
         assertNotNull("Context returned log");
         assertEquals("Context returned correct log",
                      expected, log.toString());

Modified: commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParserTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParserTestCase.java?rev=1488513&r1=1488512&r2=1488513&view=diff
==============================================================================
--- commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParserTestCase.java
(original)
+++ commons/proper/chain/trunk/configuration/xml/src/test/java/org/apache/commons/chain2/config/xml/ConfigParserTestCase.java
Sat Jun  1 12:39:42 2013
@@ -320,7 +320,7 @@ public class ConfigParserTestCase {
 
     // Verify the contents of the execution log
     protected void checkExecuteLog(String expected) {
-        StringBuffer log = (StringBuffer) context.get("log");
+        StringBuilder log = (StringBuilder) context.get("log");
         assertNotNull("Context returned log");
         assertEquals("Context returned correct log",
                      expected, log.toString());

Modified: commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/DispatchLookupCommandTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/DispatchLookupCommandTestCase.java?rev=1488513&r1=1488512&r2=1488513&view=diff
==============================================================================
--- commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/DispatchLookupCommandTestCase.java
(original)
+++ commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/DispatchLookupCommandTestCase.java
Sat Jun  1 12:39:42 2013
@@ -185,7 +185,7 @@ public class DispatchLookupCommandTestCa
 
     // Verify the contents of the execution log
     protected void checkExecuteLog(String expected) {
-        StringBuffer log = (StringBuffer) context.get("log");
+        StringBuilder log = (StringBuilder) context.get("log");
         assertNotNull("Context failed to return log", log);
         assertEquals("Context returned correct log",
                      expected, log.toString());

Modified: commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/LookupCommandTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/LookupCommandTestCase.java?rev=1488513&r1=1488512&r2=1488513&view=diff
==============================================================================
--- commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/LookupCommandTestCase.java
(original)
+++ commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/generic/LookupCommandTestCase.java
Sat Jun  1 12:39:42 2013
@@ -201,7 +201,7 @@ public class LookupCommandTestCase {
 
     // Verify the contents of the execution log
     protected void checkExecuteLog(String expected) {
-        StringBuffer log = (StringBuffer) context.get("log");
+        StringBuilder log = (StringBuilder) context.get("log");
         assertNotNull("Context failed to return log", log);
         assertEquals("Context returned correct log",
                      expected, log.toString());

Modified: commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ChainBaseTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ChainBaseTestCase.java?rev=1488513&r1=1488512&r2=1488513&view=diff
==============================================================================
--- commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ChainBaseTestCase.java
(original)
+++ commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ChainBaseTestCase.java
Sat Jun  1 12:39:42 2013
@@ -358,7 +358,7 @@ public class ChainBaseTestCase {
 
     // Verify the contents of the execution log
     protected void checkExecuteLog(String expected) {
-        StringBuffer log = (StringBuffer) context.get("log");
+        StringBuilder log = (StringBuilder) context.get("log");
         assertNotNull("Context failed to return log", log);
         assertEquals("Context returned correct log",
                      expected, log.toString());

Modified: commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/NonDelegatingCommand.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/NonDelegatingCommand.java?rev=1488513&r1=1488512&r2=1488513&view=diff
==============================================================================
--- commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/NonDelegatingCommand.java
(original)
+++ commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/NonDelegatingCommand.java
Sat Jun  1 12:39:42 2013
@@ -88,9 +88,9 @@ public class NonDelegatingCommand implem
      * @param id The identifier to be logged
      */
     protected void log(Context<String, Object> context, String id) {
-        StringBuffer sb = (StringBuffer) context.get("log");
+        StringBuilder sb = (StringBuilder) context.get("log");
         if (sb == null) {
-            sb = new StringBuffer();
+            sb = new StringBuilder();
             context.put("log", sb);
         }
         if (sb.length() > 0) {

Modified: commons/proper/chain/trunk/web/src/test/java/org/apache/commons/chain2/web/servlet/MockHttpServletRequest.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/web/src/test/java/org/apache/commons/chain2/web/servlet/MockHttpServletRequest.java?rev=1488513&r1=1488512&r2=1488513&view=diff
==============================================================================
--- commons/proper/chain/trunk/web/src/test/java/org/apache/commons/chain2/web/servlet/MockHttpServletRequest.java
(original)
+++ commons/proper/chain/trunk/web/src/test/java/org/apache/commons/chain2/web/servlet/MockHttpServletRequest.java
Sat Jun  1 12:39:42 2013
@@ -232,7 +232,7 @@ public class MockHttpServletRequest impl
 
 
     public String getRequestURI() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         if (contextPath != null) {
             sb.append(contextPath);
         }



Mime
View raw message