tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1056735 - in /tomcat/trunk/java/org/apache: catalina/filters/RemoteIpFilter.java catalina/valves/RemoteIpValve.java tomcat/util/file/Matcher.java
Date Sat, 08 Jan 2011 17:02:11 GMT
Author: markt
Date: Sat Jan  8 17:02:10 2011
New Revision: 1056735

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

Modified:
    tomcat/trunk/java/org/apache/catalina/filters/RemoteIpFilter.java
    tomcat/trunk/java/org/apache/catalina/valves/RemoteIpValve.java
    tomcat/trunk/java/org/apache/tomcat/util/file/Matcher.java

Modified: tomcat/trunk/java/org/apache/catalina/filters/RemoteIpFilter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/filters/RemoteIpFilter.java?rev=1056735&r1=1056734&r2=1056735&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/filters/RemoteIpFilter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/filters/RemoteIpFilter.java Sat Jan  8 17:02:10
2011
@@ -690,7 +690,7 @@ public class RemoteIpFilter implements F
             String remoteIp = null;
             // In java 6, proxiesHeaderValue should be declared as a java.util.Deque
             LinkedList<String> proxiesHeaderValue = new LinkedList<String>();
-            StringBuffer concatRemoteIpHeaderValue = new StringBuffer();
+            StringBuilder concatRemoteIpHeaderValue = new StringBuilder();
             
             for (Enumeration<String> e = request.getHeaders(remoteIpHeader); e.hasMoreElements();)
{
                 if (concatRemoteIpHeaderValue.length() > 0) {

Modified: tomcat/trunk/java/org/apache/catalina/valves/RemoteIpValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/RemoteIpValve.java?rev=1056735&r1=1056734&r2=1056735&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/valves/RemoteIpValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/valves/RemoteIpValve.java Sat Jan  8 17:02:10 2011
@@ -517,7 +517,7 @@ public class RemoteIpValve extends Valve
             String remoteIp = null;
             // In java 6, proxiesHeaderValue should be declared as a java.util.Deque
             LinkedList<String> proxiesHeaderValue = new LinkedList<String>();
-            StringBuffer concatRemoteIpHeaderValue = new StringBuffer();
+            StringBuilder concatRemoteIpHeaderValue = new StringBuilder();
             
             for (Enumeration<String> e = request.getHeaders(remoteIpHeader); e.hasMoreElements();)
{
                 if (concatRemoteIpHeaderValue.length() > 0) {

Modified: tomcat/trunk/java/org/apache/tomcat/util/file/Matcher.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/file/Matcher.java?rev=1056735&r1=1056734&r2=1056735&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/file/Matcher.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/file/Matcher.java Sat Jan  8 17:02:10 2011
@@ -491,7 +491,7 @@ public final class Matcher {
             //remove the initial separator; the root has it.
             next = (ca[next] == sep) ? next + 1 : next;
 
-            StringBuffer sbPath = new StringBuffer();
+            StringBuilder sbPath = new StringBuilder();
             // Eliminate consecutive slashes after the drive spec:
             for (int i = next; i < ca.length; i++) {
                 if (ca[i] != sep || ca[i - 1] != sep) {



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


Mime
View raw message