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

This commit is contained in:
dev
2015-04-04 19:49:37 +00:00
parent a444c25c2c
commit d1ac24c65d

View File

@@ -284,11 +284,16 @@ public class Node
////////////////////////////////////////////////
// equals
////////////////////////////////////////////////
public boolean equals(Node otherNode) {
if (otherNode == null)
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null)
return false;
if (!(o instanceof Node))
return false;
Node otherNode = (Node) o;
String thisNodeString = toString();
String otherNodeString = otherNode.toString();