Compare GenericToken with == again

This commit is contained in:
Andreas Dangel committed 2022-01-28 10:13:12 +01:00
1 parent a12e9aed13
commit c3114a1670
1 file changed
+1 -1
@@ -120,7 +120,7 @@ public interface GenericToken<T extends GenericToken<T>> {
+ ") must come before " + to + " (at " + to.getStartInDocument() + ")"
);
}
return IteratorUtil.generate(from, t -> t.equals(to) ? null : t.getNext());
return IteratorUtil.generate(from, t -> t == to ? null : t.getNext());
}