diff options
author | Vitaly Takmazov | 2018-05-04 22:35:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-05-04 22:35:19 +0300 |
commit | f386d47c66dd8cf69bb03972ed44d812b8f24761 (patch) | |
tree | abf27f2874e032f4e682bd710bf097f5fc673fe8 /juick-common/src/main/java/com/juick/Message.java | |
parent | ff75e92712d55bfb8debbb796f3bc7985dfac569 (diff) |
common: add missing hashCode() to core entities
Diffstat (limited to 'juick-common/src/main/java/com/juick/Message.java')
-rw-r--r-- | juick-common/src/main/java/com/juick/Message.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/Message.java b/juick-common/src/main/java/com/juick/Message.java index 45a0fdd4..b462e9b2 100644 --- a/juick-common/src/main/java/com/juick/Message.java +++ b/juick-common/src/main/java/com/juick/Message.java @@ -29,6 +29,7 @@ import java.time.Instant; import java.util.ArrayList; import java.util.HashSet; import java.util.List; +import java.util.Objects; import java.util.Set; /** @@ -317,4 +318,9 @@ public class Message implements Comparable { public void setReactions(Set<Reaction> reactions) { this.reactions = reactions; } + + @Override + public int hashCode() { + return Objects.hash(mid, rid); + } } |