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

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

findbugs: Covariant equals() method defined, Object.equals(Object) inherited

parent a444c25c
No related branches found
No related tags found
No related merge requests found
...@@ -284,11 +284,16 @@ public class Node ...@@ -284,11 +284,16 @@ public class Node
//////////////////////////////////////////////// ////////////////////////////////////////////////
// equals // equals
//////////////////////////////////////////////// ////////////////////////////////////////////////
@Override
public boolean equals(Node otherNode) { public boolean equals(Object o) {
if (otherNode == null) if (this == o)
return true;
if (o == null)
return false;
if (!(o instanceof Node))
return false; return false;
Node otherNode = (Node) o;
String thisNodeString = toString(); String thisNodeString = toString();
String otherNodeString = otherNode.toString(); String otherNodeString = otherNode.toString();
......
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