diff --git a/src/main/java/org/jpeek/calculus/java/implementations/UnionFind.java b/src/main/java/org/jpeek/calculus/java/implementations/UnionFind.java index 7399b013..726cb7b3 100644 --- a/src/main/java/org/jpeek/calculus/java/implementations/UnionFind.java +++ b/src/main/java/org/jpeek/calculus/java/implementations/UnionFind.java @@ -92,7 +92,7 @@ public int getSize() { */ private T getParent(final T node) { if (!this.parents.containsKey(node)) { - throw new IllegalStateException("some of the nodes are not from the initial set"); + throw new IllegalStateException("node is not from the initial set"); } T ancestor = node; while (!this.parents.get(ancestor).equals(ancestor)) {