Use the hashCode() of the ID.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Post.java
index bbabad5..fc8a125 100644 (file)
@@ -84,6 +84,10 @@ public class Post {
                this.text = text;
        }
 
+       //
+       // ACCESSORS
+       //
+
        /**
         * Returns the ID of the post.
         *
@@ -129,7 +133,7 @@ public class Post {
         */
        @Override
        public int hashCode() {
-               return text.hashCode() ^ (int) (time >> 32) ^ (int) (time & 0xffffffff);
+               return id.hashCode();
        }
 
        /**