Change from string reference comparison to equals() for clarity.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 1 Oct 2004 20:25:12 +0000 (20:25 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 1 Oct 2004 20:25:12 +0000 (20:25 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1089 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/AAAttribute.java

index 485db99..a445861 100644 (file)
@@ -240,7 +240,7 @@ public class AAAttribute extends SAMLAttribute implements ResolverAttribute, Arp
                if (lifetime != ((AAAttribute) object).lifetime) {
                        return false;
                }
-               if (name != ((AAAttribute) object).name) {
+               if (!name.equals(((AAAttribute) object).name)) {
                        return false;
                }
                if (!valueHandler.equals(((AAAttribute) object).valueHandler)) {