User: luke_t Date: 02/02/03 13:58:30 Modified: src/main/org/jboss/security/plugins JaasSecurityManager.java Log: simplified if/else logic in validateCache method. Revision Changes Path 1.19 +2 -4 jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java Index: JaasSecurityManager.java =================================================================== RCS file: /cvsroot/jboss/jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- JaasSecurityManager.java 2002/02/03 21:18:19 1.18 +++ JaasSecurityManager.java 2002/02/03 21:58:30 1.19 @@ -45,7 +45,7 @@ * * @author <a href="[EMAIL PROTECTED]">Oleg Nitz</a> * @author [EMAIL PROTECTED] - * @version $Revision: 1.18 $ + * @version $Revision: 1.19 $ */ public class JaasSecurityManager implements SubjectSecurityManager, RealmMapping { @@ -403,9 +403,7 @@ isValid = subjectCredential == null; } // See if the credential is assignable to the cache value - else if(subjectCredential.getClass().isAssignableFrom(credential.getClass()) == false) - isValid = false; - else + else if (subjectCredential.getClass().isAssignableFrom(credential.getClass())) { /* Validate the credential by trying Comparable, char[], byte[], and finally Object.equals()
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development