tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1627610 - /tomcat/trunk/java/org/apache/catalina/realm/CredentialHandlerBase.java
Date Thu, 25 Sep 2014 19:33:20 GMT
Author: markt
Date: Thu Sep 25 19:33:19 2014
New Revision: 1627610

URL: http://svn.apache.org/r1627610
Log:
Operator precedence

Modified:
    tomcat/trunk/java/org/apache/catalina/realm/CredentialHandlerBase.java

Modified: tomcat/trunk/java/org/apache/catalina/realm/CredentialHandlerBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/realm/CredentialHandlerBase.java?rev=1627610&r1=1627609&r2=1627610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/realm/CredentialHandlerBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/realm/CredentialHandlerBase.java Thu Sep 25 19:33:19
2014
@@ -79,7 +79,7 @@ public abstract class CredentialHandlerB
         String serverCredential = mutate(userCredential, salt, iterations);
 
         StringBuilder result =
-                new StringBuilder(saltLength << 1 + 10 + serverCredential.length()
+ 2);
+                new StringBuilder((saltLength << 1) + 10 + serverCredential.length()
+ 2);
         result.append(HexUtils.toHexString(salt));
         result.append('$');
         result.append(iterations);



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


Mime
View raw message