aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/model')
-rw-r--r--src/main/java/com/juick/model/Message.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/juick/model/Message.java b/src/main/java/com/juick/model/Message.java
index 32d888a7..915d5f21 100644
--- a/src/main/java/com/juick/model/Message.java
+++ b/src/main/java/com/juick/model/Message.java
@@ -118,10 +118,9 @@ public class Message implements Comparable<Message>, Serializable {
if (obj == this)
return true;
- if (!(obj instanceof Message))
+ if (!(obj instanceof Message jmsg))
return false;
- Message jmsg = (Message) obj;
return (this.getMid() == jmsg.getMid() && this.getRid() == jmsg.getRid());
}