tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832000 - in /tomcat/trunk/java/org/apache/catalina/authenticator: AuthenticatorBase.java FormAuthenticator.java SingleSignOn.java
Date Mon, 02 Nov 2009 18:25:32 GMT
Author: markt
Date: Mon Nov  2 18:25:32 2009
New Revision: 832000

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

Modified:
    tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java
    tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java
    tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java

Modified: tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java?rev=832000&r1=831999&r2=832000&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java Mon Nov  2
18:25:32 2009
@@ -584,7 +584,7 @@
         bytes = getDigest().digest(bytes);
 
         // Render the result as a String of hexadecimal digits
-        StringBuffer result = new StringBuffer();
+        StringBuilder result = new StringBuilder();
         for (int i = 0; i < bytes.length; i++) {
             byte b1 = (byte) ((bytes[i] & 0xf0) >> 4);
             byte b2 = (byte) (bytes[i] & 0x0f);

Modified: tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java?rev=832000&r1=831999&r2=832000&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java (original)
+++ tomcat/trunk/java/org/apache/catalina/authenticator/FormAuthenticator.java Mon Nov  2
18:25:32 2009
@@ -530,7 +530,7 @@
             (SavedRequest) session.getNote(Constants.FORM_REQUEST_NOTE);
         if (saved == null)
             return (null);
-        StringBuffer sb = new StringBuffer(saved.getRequestURI());
+        StringBuilder sb = new StringBuilder(saved.getRequestURI());
         if (saved.getQueryString() != null) {
             sb.append('?');
             sb.append(saved.getQueryString());

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



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


Mime
View raw message