From: David ‘Bombe’ Roden Date: Thu, 14 Oct 2010 10:11:52 +0000 (+0200) Subject: Use the hashCode() of the ID. X-Git-Tag: 0.1-RC1~412 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=f637fce46e6468595c70daee9a02f36bb37c57e3 Use the hashCode() of the ID. --- 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(); } /**