@@ -487,26 +487,28 @@ public VariationTreeNode<L> toVariationTree(final Map<? super T, VariationTreeNo
487487 }
488488
489489 /**
490- * Checks that this node satisfies some easy to check invariants.
491- * In particular, this method checks that
492- * <ul>
493- * <li>if-chains are nested correctly,
494- * <li>the root is an {@link NodeType#IF} with the feature mapping {@code "true"},
495- * <li>the feature mapping is {@code null} iff {@code isConditionalAnnotation} is {@code false}
496- * and
497- * <li>all edges are well-formed (e.g., edges can be inconsistent because edges are
498- * double-linked).
499- * </ul>
500- *
501- * <p>Some invariants are not checked. These include
502- * <ul>
503- * <li>There should be no cycles and
504- * <li>{@link getID} should be unique in the whole variation tree.
505- * </ul>
506- *
507- * @see Assert#assertTrue
508- * @throws AssertionError when an inconsistency is detected.
509- */
490+ * Checks that this node satisfies some easy to check invariants.
491+ * In particular, this method checks that
492+ * <ul>
493+ * <li>if-chains are nested correctly,
494+ * <li>the root is an {@link NodeType#IF} with the feature mapping {@code "true"},
495+ * <li>the feature mapping is {@code null} iff {@code isConditionalAnnotation} is {@code false}
496+ * and
497+ * <li>all edges are well-formed (e.g., edges can be inconsistent because edges are
498+ * double-linked).
499+ * </ul>
500+ *
501+ * <p>Some invariants are not checked. These include
502+ * <ul>
503+ * <li>There should be no cycles,
504+ * <li>{@link getID} should be unique in the whole variation tree, and
505+ * <li>children are not checked recursively.
506+ * </ul>
507+ * Use {@link VariationTree#assertConsistency} to check all children recursively.
508+ *
509+ * @see Assert#assertTrue
510+ * @throws AssertionError when an inconsistency is detected.
511+ */
510512 public void assertConsistency () {
511513 // ELSE and ELIF nodes have an IF or ELIF as parent.
512514 if (isElse () || isElif ()) {
0 commit comments