tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832039 - in /tomcat/trunk/java/org/apache/naming: HandlerRef.java ResourceRef.java ServiceRef.java StringManager.java resources/DirContextURLStreamHandler.java
Date Mon, 02 Nov 2009 18:46:21 GMT
Author: markt
Date: Mon Nov  2 18:46:21 2009
New Revision: 832039

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

Modified:
    tomcat/trunk/java/org/apache/naming/HandlerRef.java
    tomcat/trunk/java/org/apache/naming/ResourceRef.java
    tomcat/trunk/java/org/apache/naming/ServiceRef.java
    tomcat/trunk/java/org/apache/naming/StringManager.java
    tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java

Modified: tomcat/trunk/java/org/apache/naming/HandlerRef.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/HandlerRef.java?rev=832039&r1=832038&r2=832039&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/HandlerRef.java (original)
+++ tomcat/trunk/java/org/apache/naming/HandlerRef.java Mon Nov  2 18:46:21 2009
@@ -159,7 +159,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("HandlerRef[");
+        StringBuilder sb = new StringBuilder("HandlerRef[");
         sb.append("className=");
         sb.append(getClassName());
         sb.append(",factoryClassLocation=");

Modified: tomcat/trunk/java/org/apache/naming/ResourceRef.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/ResourceRef.java?rev=832039&r1=832038&r2=832039&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/ResourceRef.java (original)
+++ tomcat/trunk/java/org/apache/naming/ResourceRef.java Mon Nov  2 18:46:21 2009
@@ -140,7 +140,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("ResourceRef[");
+        StringBuilder sb = new StringBuilder("ResourceRef[");
         sb.append("className=");
         sb.append(getClassName());
         sb.append(",factoryClassLocation=");

Modified: tomcat/trunk/java/org/apache/naming/ServiceRef.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/ServiceRef.java?rev=832039&r1=832038&r2=832039&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/ServiceRef.java (original)
+++ tomcat/trunk/java/org/apache/naming/ServiceRef.java Mon Nov  2 18:46:21 2009
@@ -188,7 +188,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("ServiceRef[");
+        StringBuilder sb = new StringBuilder("ServiceRef[");
         sb.append("className=");
         sb.append(getClassName());
         sb.append(",factoryClassLocation=");

Modified: tomcat/trunk/java/org/apache/naming/StringManager.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/StringManager.java?rev=832039&r1=832038&r2=832039&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/StringManager.java (original)
+++ tomcat/trunk/java/org/apache/naming/StringManager.java Mon Nov  2 18:46:21 2009
@@ -120,7 +120,7 @@
  
             iString = MessageFormat.format(value, nonNullArgs);
 	} catch (IllegalArgumentException iae) {
-	    StringBuffer buf = new StringBuffer();
+	    StringBuilder buf = new StringBuilder();
 	    buf.append(value);
 	    for (int i = 0; i < args.length; i++) {
 		buf.append(" arg[" + i + "]=" + args[i]);

Modified: tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java?rev=832039&r1=832038&r2=832039&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java (original)
+++ tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java Mon Nov
 2 18:46:21 2009
@@ -99,7 +99,7 @@
      * Override as part of the fix for 36534, to ensure toString is correct.
      */
     protected String toExternalForm(URL u) {
-        // pre-compute length of StringBuffer
+        // pre-compute length of StringBuilder
         int len = u.getProtocol().length() + 1;
         if (u.getPath() != null) {
             len += u.getPath().length();
@@ -109,7 +109,7 @@
         }
         if (u.getRef() != null) 
             len += 1 + u.getRef().length();
-        StringBuffer result = new StringBuffer(len);
+        StringBuilder result = new StringBuilder(len);
         result.append(u.getProtocol());
         result.append(":");
         if (u.getPath() != null) {



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


Mime
View raw message