[jboss-cvs] JBossAS SVN: r86492 - branches/JBPAPP_4_2_0_GA_CP/security/src/main/org/jboss/security.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Mar 30 19:43:53 EDT 2009
Author: mmoyses
Date: 2009-03-30 19:43:53 -0400 (Mon, 30 Mar 2009)
New Revision: 86492
Modified:
branches/JBPAPP_4_2_0_GA_CP/security/src/main/org/jboss/security/SimplePrincipal.java
Log:
JBPAPP-1841: changing SimplePrincipal.equals to compare only instances of SimplePrincipal
Modified: branches/JBPAPP_4_2_0_GA_CP/security/src/main/org/jboss/security/SimplePrincipal.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/security/src/main/org/jboss/security/SimplePrincipal.java 2009-03-30 23:27:15 UTC (rev 86491)
+++ branches/JBPAPP_4_2_0_GA_CP/security/src/main/org/jboss/security/SimplePrincipal.java 2009-03-30 23:43:53 UTC (rev 86492)
@@ -42,12 +42,12 @@
}
/**
- * Compare this SimplePrincipal's name against another Principal
- * @return true if name equals another.getName();
+ * Compare instances of SimplePrincipals.
+ * @return true object is equal.
*/
public boolean equals(Object another)
{
- if (!(another instanceof Principal))
+ if (!(another instanceof SimplePrincipal))
return false;
String anotherName = ((Principal) another).getName();
boolean equals = false;
More information about the jboss-cvs-commits
mailing list