tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r831997 - in /tomcat/trunk/java/javax/servlet: http/HttpUtils.java jsp/tagext/TagAttributeInfo.java
Date Mon, 02 Nov 2009 18:16:37 GMT
Author: markt
Date: Mon Nov  2 18:16:36 2009
New Revision: 831997

URL: http://svn.apache.org/viewvc?rev=831997&view=rev
Log:
StringBuffer -> StringBuilder for javax.servlet

Modified:
    tomcat/trunk/java/javax/servlet/http/HttpUtils.java
    tomcat/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java

Modified: tomcat/trunk/java/javax/servlet/http/HttpUtils.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/HttpUtils.java?rev=831997&r1=831996&r2=831997&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/http/HttpUtils.java (original)
+++ tomcat/trunk/java/javax/servlet/http/HttpUtils.java Mon Nov  2 18:16:36 2009
@@ -88,7 +88,7 @@
             throw new IllegalArgumentException();
         }
         Hashtable<String,String[]> ht = new Hashtable<String,String[]>();
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         StringTokenizer st = new StringTokenizer(s, "&");
         while (st.hasMoreTokens()) {
             String pair = st.nextToken();
@@ -203,7 +203,7 @@
     /*
      * Parse a name in the query string.
      */
-    static private String parseName(String s, StringBuffer sb) {
+    static private String parseName(String s, StringBuilder sb) {
         sb.setLength(0);
         for (int i = 0; i < s.length(); i++) {
             char c = s.charAt(i); 

Modified: tomcat/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java?rev=831997&r1=831996&r2=831997&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java (original)
+++ tomcat/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java Mon Nov  2 18:16:36 2009
@@ -171,7 +171,7 @@
      * @return a String representation of this TagAttributeInfo
      */
     public String toString() {
-        StringBuffer b = new StringBuffer(64);
+        StringBuilder b = new StringBuilder(64);
         b.append("name = " + name + " ");
         b.append("type = " + type + " ");
         b.append("reqTime = " + reqTime + " ");



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


Mime
View raw message