Fix .equals for Node.

這個提交存在於:
Mikael Capelle 2018-03-09 21:08:00 +01:00
父節點 7dcbdcb408
當前提交 f2bdc462a3

查看文件

@ -95,6 +95,9 @@ public class Node implements Comparable<Node> {
@Override @Override
public boolean equals(Object other) { public boolean equals(Object other) {
if (other == null) {
return false;
}
if (other instanceof Node) { if (other instanceof Node) {
return getId() == ((Node) other).getId(); return getId() == ((Node) other).getId();
} }