clean up/optimize equals() and hashCode() methods
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / idp / session / impl / AuthenticationMethodInformationImpl.java
index 2cbb6c0..61b700b 100644 (file)
@@ -114,6 +114,10 @@ public class AuthenticationMethodInformationImpl implements AuthenticationMethod
 
     /** {@inheritDoc} */
     public boolean equals(Object obj) {
+        if(obj == this){
+            return true;
+        }
+        
         if (!(obj instanceof AuthenticationMethodInformation)) {
             return false;
         }