Skip to content

Commit 2402806

Browse files
committed
phishman3579#43 Fix for a wrong object equals
1 parent 7aa69e1 commit 2402806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/jwetherell/algorithms/data_structures/DisjointSet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public boolean equals(Object o) {
120120
final Item<T> i = (Item<T>) o;
121121
if ((i.parent!=null && parent!=null) && !(i.parent.value.equals(parent.value)))
122122
return false;
123-
if ((i.value!=null && value!=null) && !(value.equals(value)))
123+
if ((i.value!=null && value!=null) && !(i.value.equals(value)))
124124
return false;
125125
return true;
126126
}

0 commit comments

Comments
 (0)