Use the hashCode() of the ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 10:11:52 +0000 (12:11 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 10:11:52 +0000 (12:11 +0200)
src/main/java/net/pterodactylus/sone/data/Post.java

index 9887de9..fc8a125 100644 (file)
@@ -133,7 +133,7 @@ public class Post {
         */
        @Override
        public int hashCode() {
-               return text.hashCode() ^ (int) (time >> 32) ^ (int) (time & 0xffffffff);
+               return id.hashCode();
        }
 
        /**