Skip to content

Commit

Permalink
Fix wrong overrided methods
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Apr 19, 2023
1 parent 7be139d commit ed21ed3
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,17 @@ public MessageId getInnerMessageId() {

@Override
public boolean equals(Object obj) {
return super.equals(obj);
return msgId.equals(obj);
}

@Override
public int hashCode() {
return super.hashCode();
return msgId.hashCode();
}

@Override
public int compareTo(MessageId o) {
return msgId.compareTo(o);
}

@Override
Expand Down Expand Up @@ -119,4 +124,9 @@ public BitSet getAckSet() {
public MessageIdAdv getFirstChunkMessageId() {
return msgId.getFirstChunkMessageId();
}

@Override
public String toString() {
return msgId.toString();
}
}

0 comments on commit ed21ed3

Please sign in to comment.