tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832002 - in /tomcat/trunk/java/org/apache/catalina/connector: ClientAbortException.java CometEventImpl.java CoyotePrincipal.java CoyoteReader.java Request.java Response.java
Date Mon, 02 Nov 2009 18:25:59 GMT
Author: markt
Date: Mon Nov  2 18:25:58 2009
New Revision: 832002

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

Modified:
    tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java
    tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
    tomcat/trunk/java/org/apache/catalina/connector/CoyotePrincipal.java
    tomcat/trunk/java/org/apache/catalina/connector/CoyoteReader.java
    tomcat/trunk/java/org/apache/catalina/connector/Request.java
    tomcat/trunk/java/org/apache/catalina/connector/Response.java

Modified: tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java?rev=832002&r1=832001&r2=832002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java Mon Nov  2 18:25:58
2009
@@ -127,7 +127,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("ClientAbortException:  ");
+        StringBuilder sb = new StringBuilder("ClientAbortException:  ");
         if (message != null) {
             sb.append(message);
             if (throwable != null) {

Modified: tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java?rev=832002&r1=832001&r2=832002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CometEventImpl.java Mon Nov  2 18:25:58
2009
@@ -125,7 +125,7 @@
     }
     
     public String toString() {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append(super.toString());
         buf.append("[EventType:");
         buf.append(eventType);

Modified: tomcat/trunk/java/org/apache/catalina/connector/CoyotePrincipal.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyotePrincipal.java?rev=832002&r1=832001&r2=832002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CoyotePrincipal.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CoyotePrincipal.java Mon Nov  2 18:25:58
2009
@@ -64,7 +64,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("CoyotePrincipal[");
+        StringBuilder sb = new StringBuilder("CoyotePrincipal[");
         sb.append(this.name);
         sb.append("]");
         return (sb.toString());

Modified: tomcat/trunk/java/org/apache/catalina/connector/CoyoteReader.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyoteReader.java?rev=832002&r1=832001&r2=832002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CoyoteReader.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CoyoteReader.java Mon Nov  2 18:25:58
2009
@@ -147,7 +147,7 @@
         int pos = 0;
         int end = -1;
         int skip = -1;
-        StringBuffer aggregator = null;
+        StringBuilder aggregator = null;
         while (end < 0) {
             mark(MAX_LINE_LENGTH);
             while ((pos < MAX_LINE_LENGTH) && (end < 0)) {
@@ -183,7 +183,7 @@
             }
             if (end < 0) {
                 if (aggregator == null) {
-                    aggregator = new StringBuffer();
+                    aggregator = new StringBuilder();
                 }
                 aggregator.append(lineBuffer);
                 pos = 0;

Modified: tomcat/trunk/java/org/apache/catalina/connector/Request.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/Request.java?rev=832002&r1=832001&r2=832002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/Request.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/Request.java Mon Nov  2 18:25:58 2009
@@ -2415,7 +2415,7 @@
     protected String unescape(String s) {
         if (s==null) return null;
         if (s.indexOf('\\') == -1) return s;
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         for (int i=0; i<s.length(); i++) {
             char c = s.charAt(i);
             if (c!='\\') buf.append(c);
@@ -2654,7 +2654,7 @@
         if (white < 0)
             white = value.indexOf('\t');
         if (white >= 0) {
-            StringBuffer sb = new StringBuffer();
+            StringBuilder sb = new StringBuilder();
             int len = value.length();
             for (int i = 0; i < len; i++) {
                 char ch = value.charAt(i);

Modified: tomcat/trunk/java/org/apache/catalina/connector/Response.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/Response.java?rev=832002&r1=832001&r2=832002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/Response.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/Response.java Mon Nov  2 18:25:58 2009
@@ -1620,7 +1620,7 @@
             anchor = path.substring(pound);
             path = path.substring(0, pound);
         }
-        StringBuffer sb = new StringBuffer(path);
+        StringBuilder sb = new StringBuilder(path);
         if( sb.length() > 0 ) { // jsessionid can't be first.
             sb.append(";");
             sb.append(Globals.SESSION_PARAMETER_NAME);



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


Mime
View raw message