StringBuffer -> StringBuilder for o.a.c.startup
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 2 Nov 2009 18:36:23 +0000 (18:36 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 2 Nov 2009 18:36:23 +0000 (18:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@832020 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/startup/ContextConfig.java
java/org/apache/catalina/startup/HostConfig.java
java/org/apache/catalina/startup/PasswdUserDatabase.java
java/org/apache/catalina/startup/SetNextNamingRule.java
java/org/apache/catalina/startup/WebRuleSet.java

index 9cfe611..37efdf3 100644 (file)
@@ -1184,7 +1184,7 @@ public class ContextConfig
 
     
     protected String getHostConfigPath(String resourceName) {
-        StringBuffer result = new StringBuffer();
+        StringBuilder result = new StringBuilder();
         Container container = context;
         Container host = null;
         Container engine = null;
index 3d28825..7606900 100644 (file)
@@ -436,7 +436,7 @@ public class HostConfig
         if (host.getXmlBase()!=null) {
             configBase = returnCanonicalPath(host.getXmlBase());
         } else {
-            StringBuffer xmlDir = new StringBuffer("conf");
+            StringBuilder xmlDir = new StringBuilder("conf");
             Container parent = host.getParent();
             if (parent instanceof Engine) {
                 xmlDir.append('/');
index 3c24b33..37ed303 100644 (file)
@@ -139,7 +139,7 @@ public final class PasswdUserDatabase
             while (true) {
 
                 // Accumulate the next line
-                StringBuffer buffer = new StringBuffer();
+                StringBuilder buffer = new StringBuilder();
                 while (true) {
                     int ch = reader.read();
                     if ((ch < 0) || (ch == '\n'))
index 1397134..38f31c5 100644 (file)
@@ -112,7 +112,7 @@ public class SetNextNamingRule extends Rule {
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("SetNextRule[");
+        StringBuilder sb = new StringBuilder("SetNextRule[");
         sb.append("methodName=");
         sb.append(methodName);
         sb.append(", paramType=");
index 1bd9986..009ba44 100644 (file)
@@ -876,7 +876,7 @@ final class CallMethodMultiRule extends CallMethodRule {
         }
 
         if (target == null) {
-            StringBuffer sb = new StringBuffer();
+            StringBuilder sb = new StringBuilder();
             sb.append("[CallMethodRule]{");
             sb.append("");
             sb.append("} Call target is null (");