mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Refactor NoteToSelf to singleton class
This commit is contained in:
parent
4acab9043c
commit
7c9fd9d0fb
3 changed files with 4 additions and 9 deletions
|
@ -12,14 +12,9 @@ public abstract class RecipientIdentifier {
|
|||
|
||||
public static class NoteToSelf extends RecipientIdentifier {
|
||||
|
||||
@Override
|
||||
public boolean equals(final Object obj) {
|
||||
return obj instanceof NoteToSelf;
|
||||
}
|
||||
public static NoteToSelf INSTANCE = new NoteToSelf();
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return 5;
|
||||
private NoteToSelf() {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue