Override equals() and hashCode() to make clear that they don’t need to be.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 17 Sep 2013 13:28:21 +0000 (15:28 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 17 Sep 2013 13:28:21 +0000 (15:28 +0200)
src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java

index 4f87b97..348cd8c 100644 (file)
@@ -70,4 +70,18 @@ public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity {
                return insertUri;
        }
 
+       //
+       // OBJECT METHODS
+       //
+
+       @Override
+       public int hashCode() {
+               return super.hashCode();
+       }
+
+       @Override
+       public boolean equals(Object object) {
+               return super.equals(object);
+       }
+
 }