jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1104062 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security: authentication/CryptedSimpleCredentials.java authorization/PrivilegeRegistry.java
Date Tue, 17 May 2011 08:52:30 GMT
Author: angela
Date: Tue May 17 08:52:30 2011
New Revision: 1104062

URL: http://svn.apache.org/viewvc?rev=1104062&view=rev
Log:
minor improvement

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/CryptedSimpleCredentials.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/CryptedSimpleCredentials.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/CryptedSimpleCredentials.java?rev=1104062&r1=1104061&r2=1104062&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/CryptedSimpleCredentials.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/CryptedSimpleCredentials.java
Tue May 17 08:52:30 2011
@@ -204,7 +204,7 @@ public class CryptedSimpleCredentials im
      * or if the extracted string isn't an available algorithm. 
      */
     private static String extractAlgorithm(String hashedPwd) {
-        int end = hashedPwd.indexOf("}");
+        int end = hashedPwd.indexOf('}');
         if (hashedPwd.startsWith("{") && end > 0) {
             String algorithm = hashedPwd.substring(1, end);
             try {
@@ -228,7 +228,7 @@ public class CryptedSimpleCredentials im
      */
     private static String extractSalt(String hashedPwd, String algorithm) {
         int start = algorithm.length()+2;
-        int end = hashedPwd.indexOf("-", start);
+        int end = hashedPwd.indexOf('-', start);
         if (end > -1) {
             return hashedPwd.substring(start, end);
         }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java?rev=1104062&r1=1104061&r2=1104062&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
Tue May 17 08:52:30 2011
@@ -884,7 +884,7 @@ public final class PrivilegeRegistry imp
      * privilege definition. It defines addition information that ease
      * the evaluation of privileges.
      */
-    private static class Definition extends PrivilegeDefinition {
+    private final static class Definition extends PrivilegeDefinition {
 
         private final PrivilegeBits bits;
         private final boolean isCustom;
@@ -941,7 +941,7 @@ public final class PrivilegeRegistry imp
      * CustomPrivilegeStore used to read and write custom privilege definitions
      * from/to a file system resource.
      */
-    private class CustomPrivilegeStore {
+    private final class CustomPrivilegeStore {
 
         /**
          * File system resource used to persist custom privileges registered with



Mime
View raw message