tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832007 - in /tomcat/trunk/java/org/apache/catalina/ha: authenticator/ deploy/ session/ tcp/
Date Mon, 02 Nov 2009 18:30:22 GMT
Author: markt
Date: Mon Nov  2 18:30:21 2009
New Revision: 832007

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

Modified:
    tomcat/trunk/java/org/apache/catalina/ha/authenticator/ClusterSingleSignOn.java
    tomcat/trunk/java/org/apache/catalina/ha/authenticator/SingleSignOnMessage.java
    tomcat/trunk/java/org/apache/catalina/ha/deploy/FileMessage.java
    tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java
    tomcat/trunk/java/org/apache/catalina/ha/session/DeltaRequest.java
    tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java
    tomcat/trunk/java/org/apache/catalina/ha/session/ReplicatedSession.java
    tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java
    tomcat/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java
    tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java

Modified: tomcat/trunk/java/org/apache/catalina/ha/authenticator/ClusterSingleSignOn.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/authenticator/ClusterSingleSignOn.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/authenticator/ClusterSingleSignOn.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/authenticator/ClusterSingleSignOn.java Mon Nov
 2 18:30:21 2009
@@ -184,7 +184,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("ClusterSingleSignOn[");
+        StringBuilder sb = new StringBuilder("ClusterSingleSignOn[");
         if (container == null )
             sb.append("Container is null");
         else

Modified: tomcat/trunk/java/org/apache/catalina/ha/authenticator/SingleSignOnMessage.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/authenticator/SingleSignOnMessage.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/authenticator/SingleSignOnMessage.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/authenticator/SingleSignOnMessage.java Mon Nov
 2 18:30:21 2009
@@ -103,7 +103,7 @@
     public String getUniqueId() {
 	if (this.uniqueId != null)
 	    return this.uniqueId;
-	StringBuffer result = new StringBuffer(getSsoId());
+	StringBuilder result = new StringBuilder(getSsoId());
 	result.append("#-#");
 	result.append(System.currentTimeMillis());
 	return result.toString();
@@ -177,7 +177,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("SingleSignOnMessage[action=");
+        StringBuilder sb = new StringBuilder("SingleSignOnMessage[action=");
 	sb.append(getAction()).append(", ssoId=").append(getSsoId());
 	sb.append(", sessionId=").append(getSessionId()).append(", username=");
 	sb.append(getUsername()).append("]");

Modified: tomcat/trunk/java/org/apache/catalina/ha/deploy/FileMessage.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/deploy/FileMessage.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/deploy/FileMessage.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/deploy/FileMessage.java Mon Nov  2 18:30:21 2009
@@ -91,7 +91,7 @@
     }
 
     public String getUniqueId() {
-        StringBuffer result = new StringBuffer(getFileName());
+        StringBuilder result = new StringBuilder(getFileName());
         result.append("#-#");
         result.append(getMessageNumber());
         result.append("#-#");

Modified: tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java Mon Nov  2 18:30:21
2009
@@ -296,7 +296,7 @@
     }
 
     public String listSessionIdsFull() {
-        StringBuffer sb=new StringBuffer();
+        StringBuilder sb=new StringBuilder();
         LazyReplicatedMap map = (LazyReplicatedMap)sessions;
         Iterator<String> keys = map.keySetFull().iterator();
         while (keys.hasNext()) {

Modified: tomcat/trunk/java/org/apache/catalina/ha/session/DeltaRequest.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/DeltaRequest.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/session/DeltaRequest.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/DeltaRequest.java Mon Nov  2 18:30:21
2009
@@ -376,7 +376,7 @@
         }
         
         public String toString() {
-            StringBuffer buf = new StringBuffer("AttributeInfo[type=");
+            StringBuilder buf = new StringBuilder("AttributeInfo[type=");
             buf.append(getType()).append(", action=").append(getAction());
             buf.append(", name=").append(getName()).append(", value=").append(getValue());
             buf.append(", addr=").append(super.toString()).append("]");

Modified: tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java Mon Nov  2 18:30:21
2009
@@ -436,7 +436,7 @@
      * Return a string representation of this object.
      */
     public String toString() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append("DeltaSession[");
         sb.append(id);
         sb.append("]");

Modified: tomcat/trunk/java/org/apache/catalina/ha/session/ReplicatedSession.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/ReplicatedSession.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/session/ReplicatedSession.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/ReplicatedSession.java Mon Nov  2 18:30:21
2009
@@ -253,7 +253,7 @@
     }
 
     public String toString() {
-        StringBuffer buf = new StringBuffer("ReplicatedSession id=");
+        StringBuilder buf = new StringBuilder("ReplicatedSession id=");
         buf.append(getIdInternal()).append(" ref=").append(super.toString()).append("\n");
         java.util.Enumeration<String> e = getAttributeNames();
         while ( e.hasMoreElements() ) {

Modified: tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/SerializablePrincipal.java Mon Nov  2
18:30:21 2009
@@ -183,7 +183,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("SerializablePrincipal[");
+        StringBuilder sb = new StringBuilder("SerializablePrincipal[");
         sb.append(this.name);
         sb.append("]");
         return (sb.toString());

Modified: tomcat/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/SessionIDMessage.java Mon Nov  2 18:30:21
2009
@@ -38,7 +38,7 @@
 	private String contextPath;
 
 	public String getUniqueId() {
-		StringBuffer result = new StringBuffer(getOrignalSessionID());
+		StringBuilder result = new StringBuilder(getOrignalSessionID());
 		result.append("#-#");
 		result.append(getHost());
                 result.append("#-#");

Modified: tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java?rev=832007&r1=832006&r2=832007&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java Mon Nov  2 18:30:21
2009
@@ -400,7 +400,7 @@
      */
     public String toString() {
 
-        StringBuffer sb = new StringBuffer("ReplicationValve[");
+        StringBuilder sb = new StringBuilder("ReplicationValve[");
         if (container != null)
             sb.append(container.getName());
         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