From: David ‘Bombe’ Roden Date: Tue, 17 Sep 2013 13:28:21 +0000 (+0200) Subject: Override equals() and hashCode() to make clear that they don’t need to be. X-Git-Tag: 0.8.7^2~11 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cdc43cba87ab4305ac206e5777ea415dd31e3797;p=Sone.git Override equals() and hashCode() to make clear that they don’t need to be. --- diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java index 4f87b97..348cd8c 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java @@ -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); + } + }