I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 4d8e577f authored by dev's avatar dev
Browse files

findbugs: Added companion equals() and hashCode() methods to existing compareTo()

parent 80eb7635
No related branches found
No related tags found
No related merge requests found
...@@ -259,9 +259,28 @@ class IntroductionManager { ...@@ -259,9 +259,28 @@ class IntroductionManager {
stag = String.valueOf(tag); stag = String.valueOf(tag);
} }
@Override
public int compareTo(Introducer i) { public int compareTo(Introducer i) {
return skey.compareTo(i.skey); return skey.compareTo(i.skey);
} }
@Override
public boolean equals(Object o) {
if (o == null) {
return false;
}
if (!(o instanceof Introducer)) {
return false;
}
Introducer i = (Introducer) o;
return this.compareTo(i) == 0;
}
@Override
public int hashCode() {
return skey.hashCode();
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment