tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832005 - in /tomcat/trunk/java/org/apache/catalina/filters: RequestDumperFilter.java WebdavFixFilter.java
Date Mon, 02 Nov 2009 18:29:14 GMT
Author: markt
Date: Mon Nov  2 18:29:13 2009
New Revision: 832005

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

Modified:
    tomcat/trunk/java/org/apache/catalina/filters/RequestDumperFilter.java
    tomcat/trunk/java/org/apache/catalina/filters/WebdavFixFilter.java

Modified: tomcat/trunk/java/org/apache/catalina/filters/RequestDumperFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/filters/RequestDumperFilter.java?rev=832005&r1=832004&r2=832005&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/filters/RequestDumperFilter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/filters/RequestDumperFilter.java Mon Nov  2 18:29:13
2009
@@ -146,7 +146,7 @@
         while (pnames.hasMoreElements()) {
             String pname = pnames.nextElement();
             String pvalues[] = request.getParameterValues(pname);
-            StringBuffer result = new StringBuffer(pname);
+            StringBuilder result = new StringBuilder(pname);
             result.append('=');
             for (int i = 0; i < pvalues.length; i++) {
                 if (i > 0)

Modified: tomcat/trunk/java/org/apache/catalina/filters/WebdavFixFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/filters/WebdavFixFilter.java?rev=832005&r1=832004&r2=832005&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/filters/WebdavFixFilter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/filters/WebdavFixFilter.java Mon Nov  2 18:29:13
2009
@@ -125,8 +125,8 @@
 	}
 
     private String buildRedirect(HttpServletRequest request) {
-        StringBuffer location =
-            new StringBuffer(request.getRequestURL().length());
+        StringBuilder location =
+            new StringBuilder(request.getRequestURL().length());
         location.append(request.getScheme());
         location.append("://");
         location.append(request.getServerName());



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


Mime
View raw message