tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832028 - in /tomcat/trunk/java/org/apache/coyote: Response.java ajp/AjpMessage.java
Date Mon, 02 Nov 2009 18:41:20 GMT
Author: markt
Date: Mon Nov  2 18:41:20 2009
New Revision: 832028

URL: http://svn.apache.org/viewvc?rev=832028&view=rev
Log:
StringBuffer -> StringBuilder for o.a.coyote

Modified:
    tomcat/trunk/java/org/apache/coyote/Response.java
    tomcat/trunk/java/org/apache/coyote/ajp/AjpMessage.java

Modified: tomcat/trunk/java/org/apache/coyote/Response.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/Response.java?rev=832028&r1=832027&r2=832028&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/Response.java (original)
+++ tomcat/trunk/java/org/apache/coyote/Response.java Mon Nov  2 18:41:20 2009
@@ -405,7 +405,7 @@
         contentLanguage = locale.getLanguage();
         if ((contentLanguage != null) && (contentLanguage.length() > 0)) {
             String country = locale.getCountry();
-            StringBuffer value = new StringBuffer(contentLanguage);
+            StringBuilder value = new StringBuilder(contentLanguage);
             if ((country != null) && (country.length() > 0)) {
                 value.append('-');
                 value.append(country);

Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpMessage.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpMessage.java?rev=832028&r1=832027&r2=832028&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpMessage.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpMessage.java Mon Nov  2 18:41:20 2009
@@ -432,7 +432,7 @@
 
 
     protected static String hexLine(byte buf[], int start, int len) {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         for (int i = start; i < start + 16 ; i++) {
             if (i < len + 4) {
                 sb.append(hex(buf[i]) + " ");



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message