clean up/optimize equals() and hashCode() methods
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / idp / session / impl / ServiceInformationImpl.java
index 4cefda0..0dbd976 100644 (file)
@@ -70,6 +70,10 @@ public class ServiceInformationImpl implements ServiceInformation {
 
     /** {@inheritDoc} */
     public boolean equals(Object obj) {
+        if(obj == this){
+            return true;
+        }
+        
         if (!(obj instanceof ServiceInformation)) {
             return false;
         }