Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mircoianese committed Aug 19, 2024
1 parent fdba222 commit bcf33bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ public class ChatBoostSourceUnknown extends ChatBoostSource implements Serializa
public final static String CHAT_BOOST_TYPE = "unknown";

@Override
public int hashCode() {
return Objects.hash(source, user);
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

return true;
}

@Override
public String toString() {
return "ChatBoostSourceUnknown{" +
"source='" + source + "'," +
"user='" + user + "'" +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ public boolean equals(Object o) {

return true;
}

@Override
public String toString() {
return "MessageOriginUnknown{" +
"type='" + type + "'," +
"date='" + date + "'" +
'}';
}

Expand Down

0 comments on commit bcf33bd

Please sign in to comment.