tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832018 - in /tomcat/trunk/java/org/apache/catalina/session: ManagerBase.java StandardSession.java
Date Mon, 02 Nov 2009 18:34:14 GMT
Author: markt
Date: Mon Nov  2 18:34:13 2009
New Revision: 832018

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

Modified:
    tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java
    tomcat/trunk/java/org/apache/catalina/session/StandardSession.java

Modified: tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java?rev=832018&r1=832017&r2=832018&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java Mon Nov  2 18:34:13 2009
@@ -965,11 +965,11 @@
         String result = null;
 
         // Render the result as a String of hexadecimal digits
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         do {
             int resultLenBytes = 0;
             if (result != null) {
-                buffer = new StringBuffer();
+                buffer = new StringBuilder();
                 duplicates++;
             }
 
@@ -1143,7 +1143,7 @@
      *
      */
     public String listSessionIds() {
-        StringBuffer sb=new StringBuffer();
+        StringBuilder sb=new StringBuilder();
         Iterator<String> keys = sessions.keySet().iterator();
         while (keys.hasNext()) {
             sb.append(keys.next()).append(" ");

Modified: tomcat/trunk/java/org/apache/catalina/session/StandardSession.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/StandardSession.java?rev=832018&r1=832017&r2=832018&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/StandardSession.java (original)
+++ tomcat/trunk/java/org/apache/catalina/session/StandardSession.java Mon Nov  2 18:34:13
2009
@@ -943,7 +943,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append("StandardSession[");
         sb.append(id);
         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