tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832003 - /tomcat/trunk/java/org/apache/catalina/core/
Date Mon, 02 Nov 2009 18:27:33 GMT
Author: markt
Date: Mon Nov  2 18:27:32 2009
New Revision: 832003

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

Modified:
    tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java
    tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterConfig.java
    tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java
    tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
    tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java
    tomcat/trunk/java/org/apache/catalina/core/StandardHost.java
    tomcat/trunk/java/org/apache/catalina/core/StandardServer.java
    tomcat/trunk/java/org/apache/catalina/core/StandardService.java
    tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java

Modified: tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java?rev=832003&r1=832002&r2=832003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java Mon Nov  2 18:27:32
2009
@@ -1240,7 +1240,7 @@
         while (childPaths.hasMoreElements()) {
             Binding binding = childPaths.nextElement();
             String name = binding.getName();
-            StringBuffer childPath = new StringBuffer(path);
+            StringBuilder childPath = new StringBuilder(path);
             if (!"/".equals(path) && !path.endsWith("/"))
                 childPath.append("/");
             childPath.append(name);

Modified: tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterConfig.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterConfig.java?rev=832003&r1=832002&r2=832003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterConfig.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterConfig.java Mon Nov  2 18:27:32
2009
@@ -194,7 +194,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("ApplicationFilterConfig[");
+        StringBuilder sb = new StringBuilder("ApplicationFilterConfig[");
         sb.append("name=");
         sb.append(filterDef.getFilterName());
         sb.append(", filterClass=");

Modified: tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java?rev=832003&r1=832002&r2=832003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java Mon Nov  2 18:27:32 2009
@@ -1498,7 +1498,7 @@
         Container host=null;
         Container servlet=null;
         
-        StringBuffer suffix=new StringBuffer();
+        StringBuilder suffix=new StringBuilder();
         
         if( container instanceof StandardHost ) {
             host=container;

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=832003&r1=832002&r2=832003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Mon Nov  2 18:27:32 2009
@@ -4794,7 +4794,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         if (getParent() != null) {
             sb.append(getParent().toString());
             sb.append(".");
@@ -5026,7 +5026,7 @@
         namingContextName = getName();
         } else {
         Stack<String> stk = new Stack<String>();
-        StringBuffer buff = new StringBuffer();
+        StringBuilder buff = new StringBuilder();
         while (parent != null) {
             stk.push(parent.getName());
             parent = parent.getParent();
@@ -5235,7 +5235,7 @@
         }
         BufferedReader br = new BufferedReader(
                                 new InputStreamReader(stream));
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         String strRead = "";
         try {
             while (strRead != null) {

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java?rev=832003&r1=832002&r2=832003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardEngine.java Mon Nov  2 18:27:32 2009
@@ -461,7 +461,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("StandardEngine[");
+        StringBuilder sb = new StringBuilder("StandardEngine[");
         sb.append(getName());
         sb.append("]");
         return (sb.toString());

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardHost.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardHost.java?rev=832003&r1=832002&r2=832003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardHost.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardHost.java Mon Nov  2 18:27:32 2009
@@ -689,7 +689,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         if (getParent() != null) {
             sb.append(getParent().toString());
             sb.append(".");

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardServer.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardServer.java?rev=832003&r1=832002&r2=832003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardServer.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardServer.java Mon Nov  2 18:27:32 2009
@@ -414,7 +414,7 @@
             }
 
             // Read a set of characters from the socket
-            StringBuffer command = new StringBuffer();
+            StringBuilder command = new StringBuilder();
             int expected = 1024; // Cut off to avoid DoS attack
             while (expected < shutdown.length()) {
                 if (random == null)
@@ -578,7 +578,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("StandardServer[");
+        StringBuilder sb = new StringBuilder("StandardServer[");
         sb.append(getPort());
         sb.append("]");
         return (sb.toString());

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardService.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardService.java?rev=832003&r1=832002&r2=832003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardService.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardService.java Mon Nov  2 18:27:32 2009
@@ -374,7 +374,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("StandardService[");
+        StringBuilder sb = new StringBuilder("StandardService[");
         sb.append(getName());
         sb.append("]");
         return (sb.toString());

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java?rev=832003&r1=832002&r2=832003&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java Mon Nov  2 18:27:32 2009
@@ -1195,7 +1195,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         if (getParent() != null) {
             sb.append(getParent().toString());
             sb.append(".");



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


Mime
View raw message