Fix .equals for Node.
Este commit está contenido en:
padre
7dcbdcb408
commit
f2bdc462a3
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
|
|
@ -95,6 +95,9 @@ public class Node implements Comparable<Node> {
|
|||
|
||||
@Override
|
||||
public boolean equals(Object other) {
|
||||
if (other == null) {
|
||||
return false;
|
||||
}
|
||||
if (other instanceof Node) {
|
||||
return getId() == ((Node) other).getId();
|
||||
}
|
||||
|
|
|
|||
Cargando…
Referenciar en una nueva incidencia