jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r786146 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/CryptedSimpleCredentials.java
Date Thu, 18 Jun 2009 16:21:28 GMT
Author: angela
Date: Thu Jun 18 16:21:28 2009
New Revision: 786146

URL: http://svn.apache.org/viewvc?rev=786146&view=rev
Log:
JCR-2087 Upgrade to Java 5 as the base platform


Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/CryptedSimpleCredentials.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=786146&r1=786145&r2=786146&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
Thu Jun 18 16:21:28 2009
@@ -35,7 +35,7 @@
     private final String algorithm;
     private final String cryptedPassword;
     private final String userId;
-    private final Map attributes;
+    private final Map<String, Object> attributes;
 
     /**
      * Take {@link javax.jcr.SimpleCredentials SimpleCredentials} and
@@ -68,7 +68,7 @@
         }
 
         String[] attNames = credentials.getAttributeNames();
-        attributes = new HashMap(attNames.length);
+        attributes = new HashMap<String, Object>(attNames.length);
         for (int i = 0; i < attNames.length; i++) {
             attributes.put(attNames[i], credentials.getAttribute(attNames[i]));
         }
@@ -101,7 +101,7 @@
     }
 
     public String[] getAttributeNames() {
-        return (String[]) attributes.keySet().toArray(new String[attributes.size()]);
+        return attributes.keySet().toArray(new String[attributes.size()]);
     }
 
     public String getAlgorithm() {



Mime
View raw message