From f637fce46e6468595c70daee9a02f36bb37c57e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 14 Oct 2010 12:11:52 +0200 Subject: [PATCH] Use the hashCode() of the ID. --- src/main/java/net/pterodactylus/sone/data/Post.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/data/Post.java b/src/main/java/net/pterodactylus/sone/data/Post.java index 9887de9..fc8a125 100644 --- a/src/main/java/net/pterodactylus/sone/data/Post.java +++ b/src/main/java/net/pterodactylus/sone/data/Post.java @@ -133,7 +133,7 @@ public class Post { */ @Override public int hashCode() { - return text.hashCode() ^ (int) (time >> 32) ^ (int) (time & 0xffffffff); + return id.hashCode(); } /** -- 2.7.4