Don’t use the Sone’s ID but (maybe) also the Sone’s shell’s ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 08:35:07 +0000 (10:35 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 08:35:07 +0000 (10:35 +0200)
src/main/java/net/pterodactylus/sone/data/Sone.java

index cd9239e..6d729c3 100644 (file)
@@ -336,7 +336,7 @@ public class Sone {
         */
        @Override
        public int hashCode() {
-               return id.hashCode();
+               return getId().hashCode();
        }
 
        /**
@@ -347,7 +347,7 @@ public class Sone {
                if (!(object instanceof Sone)) {
                        return false;
                }
-               return ((Sone) object).id.equals(id);
+               return ((Sone) object).id.equals(getId());
        }
 
        /**