mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-31 03:24:21 +01:00
Refactor NoteToSelf to singleton class
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user