jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r736654 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
Date Thu, 22 Jan 2009 14:17:56 GMT
Author: angela
Date: Thu Jan 22 06:17:55 2009
New Revision: 736654

URL: http://svn.apache.org/viewvc?rev=736654&view=rev
Log:
redundant casts

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java?rev=736654&r1=736653&r2=736654&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
Thu Jan 22 06:17:55 2009
@@ -526,9 +526,9 @@
                 Credentials creds = callback.getCredentials();
                 if (null != creds) {
                     if (creds instanceof SimpleCredentials) {
-                       credentials = (SimpleCredentials) creds;
+                       credentials = creds;
                     } else if (creds instanceof GuestCredentials) {
-                       credentials = (GuestCredentials) creds;
+                       credentials = creds;
                     }
                     sharedState.put(KEY_CREDENTIALS, credentials);
                 }



Mime
View raw message