tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r831999 - in /tomcat/trunk/java/org/apache/catalina/ant: AbstractCatalinaTask.java DeployTask.java JKStatusUpdateTask.java
Date Mon, 02 Nov 2009 18:24:50 GMT
Author: markt
Date: Mon Nov  2 18:24:49 2009
New Revision: 831999

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

Modified:
    tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java
    tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java
    tomcat/trunk/java/org/apache/catalina/ant/JKStatusUpdateTask.java

Modified: tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java?rev=831999&r1=831998&r2=831999&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java Mon Nov  2 18:24:49
2009
@@ -221,7 +221,7 @@
 
             // Process the response message
             reader = new InputStreamReader(hconn.getInputStream(), CHARSET);
-            StringBuffer buff = new StringBuffer();
+            StringBuilder buff = new StringBuilder();
             String error = null;
             int msgPriority = Project.MSG_INFO;
             boolean first = true;

Modified: tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java?rev=831999&r1=831998&r2=831999&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java Mon Nov  2 18:24:49 2009
@@ -176,7 +176,7 @@
         }
 
         // Building URL
-        StringBuffer sb = new StringBuffer("/deploy?path=");
+        StringBuilder sb = new StringBuilder("/deploy?path=");
         try {
             sb.append(URLEncoder.encode(this.path, getCharset()));
             if ((war == null) && (config != null)) {

Modified: tomcat/trunk/java/org/apache/catalina/ant/JKStatusUpdateTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/JKStatusUpdateTask.java?rev=831999&r1=831998&r2=831999&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/JKStatusUpdateTask.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ant/JKStatusUpdateTask.java Mon Nov  2 18:24:49
2009
@@ -272,7 +272,7 @@
 
         super.execute();
         checkParameter();
-        StringBuffer sb = createLink();
+        StringBuilder sb = createLink();
         execute(sb.toString(), null, null, -1);
 
     }
@@ -289,9 +289,9 @@
      * 
      * @return create jkstatus link
      */
-    private StringBuffer createLink() {
+    private StringBuilder createLink() {
         // Building URL
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         try {
             sb.append("?cmd=update&mime=txt");
             sb.append("&w=");



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


Mime
View raw message