tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832011 - in /tomcat/trunk/java/org/apache/catalina/loader: WebappClassLoader.java WebappLoader.java
Date Mon, 02 Nov 2009 18:31:26 GMT
Author: markt
Date: Mon Nov  2 18:31:26 2009
New Revision: 832011

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

Modified:
    tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java
    tomcat/trunk/java/org/apache/catalina/loader/WebappLoader.java

Modified: tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java?rev=832011&r1=832010&r2=832011&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java (original)
+++ tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java Mon Nov  2 18:31:26
2009
@@ -819,7 +819,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("WebappClassLoader\r\n");
+        StringBuilder sb = new StringBuilder("WebappClassLoader\r\n");
         sb.append("  delegate: ");
         sb.append(delegate);
         sb.append("\r\n");

Modified: tomcat/trunk/java/org/apache/catalina/loader/WebappLoader.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/loader/WebappLoader.java?rev=832011&r1=832010&r2=832011&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/loader/WebappLoader.java (original)
+++ tomcat/trunk/java/org/apache/catalina/loader/WebappLoader.java Mon Nov  2 18:31:26 2009
@@ -432,7 +432,7 @@
     /** Extra repositories for this loader
      */
     public String getRepositoriesString() {
-        StringBuffer sb=new StringBuffer();
+        StringBuilder sb=new StringBuilder();
         for( int i=0; i<repositories.length ; i++ ) {
             sb.append( repositories[i]).append(":");
         }
@@ -448,7 +448,7 @@
 
     public String getLoaderRepositoriesString() {
         String repositories[]=getLoaderRepositories();
-        StringBuffer sb=new StringBuffer();
+        StringBuilder sb=new StringBuilder();
         for( int i=0; i<repositories.length ; i++ ) {
             sb.append( repositories[i]).append(":");
         }
@@ -505,7 +505,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("WebappLoader[");
+        StringBuilder sb = new StringBuilder("WebappLoader[");
         if (container != null)
             sb.append(container.getName());
         sb.append("]");
@@ -1066,7 +1066,7 @@
             }
         }
 
-        StringBuffer classpath = new StringBuffer();
+        StringBuilder classpath = new StringBuilder();
 
         // Assemble the class path information from our class loader chain
         ClassLoader loader = getClassLoader();



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


Mime
View raw message