tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832040 - in /tomcat/trunk/webapps/examples/WEB-INF/classes: async/Stockticker.java filters/ExampleFilter.java jsp2/examples/el/Functions.java util/HTMLFilter.java
Date Mon, 02 Nov 2009 18:47:15 GMT
Author: markt
Date: Mon Nov  2 18:47:14 2009
New Revision: 832040

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

Modified:
    tomcat/trunk/webapps/examples/WEB-INF/classes/async/Stockticker.java
    tomcat/trunk/webapps/examples/WEB-INF/classes/filters/ExampleFilter.java
    tomcat/trunk/webapps/examples/WEB-INF/classes/jsp2/examples/el/Functions.java
    tomcat/trunk/webapps/examples/WEB-INF/classes/util/HTMLFilter.java

Modified: tomcat/trunk/webapps/examples/WEB-INF/classes/async/Stockticker.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/async/Stockticker.java?rev=832040&r1=832039&r2=832040&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/WEB-INF/classes/async/Stockticker.java (original)
+++ tomcat/trunk/webapps/examples/WEB-INF/classes/async/Stockticker.java Mon Nov  2 18:47:14
2009
@@ -164,7 +164,7 @@
         }
 
         public String toString() {
-            StringBuffer buf = new StringBuffer("STOCK#");
+            StringBuilder buf = new StringBuilder("STOCK#");
             buf.append(getSymbol());
             buf.append("#");
             buf.append(getValueAsString());

Modified: tomcat/trunk/webapps/examples/WEB-INF/classes/filters/ExampleFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/filters/ExampleFilter.java?rev=832040&r1=832039&r2=832040&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/WEB-INF/classes/filters/ExampleFilter.java (original)
+++ tomcat/trunk/webapps/examples/WEB-INF/classes/filters/ExampleFilter.java Mon Nov  2 18:47:14
2009
@@ -127,7 +127,7 @@
 
 	if (filterConfig == null)
 	    return ("TimingFilter()");
-	StringBuffer sb = new StringBuffer("TimingFilter(");
+	StringBuilder sb = new StringBuilder("TimingFilter(");
 	sb.append(filterConfig);
 	sb.append(")");
 	return (sb.toString());

Modified: tomcat/trunk/webapps/examples/WEB-INF/classes/jsp2/examples/el/Functions.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/jsp2/examples/el/Functions.java?rev=832040&r1=832039&r2=832040&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/WEB-INF/classes/jsp2/examples/el/Functions.java (original)
+++ tomcat/trunk/webapps/examples/WEB-INF/classes/jsp2/examples/el/Functions.java Mon Nov
 2 18:47:14 2009
@@ -23,7 +23,7 @@
  */
 public class Functions {
     public static String reverse( String text ) {
-        return new StringBuffer( text ).reverse().toString();
+        return new StringBuilder( text ).reverse().toString();
     }
 
     public static int numVowels( String text ) {

Modified: tomcat/trunk/webapps/examples/WEB-INF/classes/util/HTMLFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/util/HTMLFilter.java?rev=832040&r1=832039&r2=832040&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/WEB-INF/classes/util/HTMLFilter.java (original)
+++ tomcat/trunk/webapps/examples/WEB-INF/classes/util/HTMLFilter.java Mon Nov  2 18:47:14
2009
@@ -41,7 +41,7 @@
 
         char content[] = new char[message.length()];
         message.getChars(0, message.length(), content, 0);
-        StringBuffer result = new StringBuffer(content.length + 50);
+        StringBuilder result = new StringBuilder(content.length + 50);
         for (int i = 0; i < content.length; i++) {
             switch (content[i]) {
             case '<':



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


Mime
View raw message