33 * SPDX-License-Identifier: GPL-2.0-only */
44package de .uka .ilkd .key .proof ;
55
6+ import java .util .*;
7+
68import de .uka .ilkd .key .logic .RenamingTable ;
79import de .uka .ilkd .key .logic .op .IProgramVariable ;
810import de .uka .ilkd .key .proof .calculus .JavaDLSequentKit ;
1517import org .key_project .prover .sequent .Sequent ;
1618import org .key_project .prover .sequent .SequentChangeInfo ;
1719import de .uka .ilkd .key .util .Pair ;
18- import org .jspecify .annotations .NonNull ;
19- import org .jspecify .annotations .Nullable ;
20+
2021import org .key_project .util .collection .DefaultImmutableSet ;
2122import org .key_project .util .collection .ImmutableList ;
2223import org .key_project .util .collection .ImmutableSLList ;
2324import org .key_project .util .collection .ImmutableSet ;
2425import org .key_project .util .collection .Pair ;
2526import org .key_project .util .lookup .Lookup ;
2627
27- import java .util .*;
28+ import org .jspecify .annotations .NonNull ;
29+ import org .jspecify .annotations .Nullable ;
2830
2931public class Node implements Iterable <Node > {
3032 private static final String RULE_WITHOUT_NAME = "rule without name" ;
@@ -116,7 +118,7 @@ public class Node implements Iterable<Node> {
116118 * taclet with an addrule section on this node, then these taclets are stored in this list
117119 */
118120 private ImmutableSet <NoPosTacletApp > localIntroducedRules =
119- DefaultImmutableSet .nil ();
121+ DefaultImmutableSet .nil ();
120122
121123 /**
122124 * Holds the undo methods for the information added by rules to the {@code Goal.strategyInfos}.
@@ -448,7 +450,7 @@ List<Node> getLeaves() {
448450
449451 /**
450452 * @return an iterator for the leaves of the subtree below this node. The computation is called
451- * at every call!
453+ * at every call!
452454 */
453455 public Iterator <Node > leavesIterator () {
454456 return new NodeIterator (getLeaves ().iterator ());
@@ -493,7 +495,7 @@ public Node child(int i) {
493495 /**
494496 * @param child a child of this node.
495497 * @return the number of the node <code>child</code>, if it is a child of this node (starting
496- * with <code>0</code>), <code>-1</code> otherwise
498+ * with <code>0</code>), <code>-1</code> otherwise
497499 */
498500 public int getChildNr (Node child ) {
499501 int res = 0 ;
@@ -533,16 +535,16 @@ public StringBuffer getUniqueTacletId() {
533535 * Helper for {@link #toString()}
534536 *
535537 * @param prefix needed to keep track if a line has to be printed
536- * @param tree the tree representation we want to add this subtree " @param preEnumeration the
537- * enumeration of the parent without the last number
538+ * @param tree the tree representation we want to add this subtree " @param preEnumeration the
539+ * enumeration of the parent without the last number
538540 * @param postNr the last number of the parents enumeration
539- * @param maxNr the number of nodes at this level
540- * @param ownNr the place of this node at this level
541+ * @param maxNr the number of nodes at this level
542+ * @param ownNr the place of this node at this level
541543 * @return the string representation of this node.
542544 */
543545
544546 private StringBuffer toString (String prefix , StringBuffer tree , String preEnumeration ,
545- int postNr , int maxNr , int ownNr ) {
547+ int postNr , int maxNr , int ownNr ) {
546548 Iterator <Node > childrenIt = childrenIterator ();
547549 // Some constants
548550 String frontIndent = (maxNr > 1 ? " " : "" );
@@ -593,7 +595,7 @@ private StringBuffer toString(String prefix, StringBuffer tree, String preEnumer
593595 while (childrenIt .hasNext ()) {
594596 childId ++;
595597 childrenIt .next ().toString (prefix , tree , newEnumeration , newPostNr , children .size (),
596- childId );
598+ childId );
597599 }
598600
599601 return tree ;
@@ -650,7 +652,7 @@ public String name() {
650652 * this node.
651653 *
652654 * @return true iff the parent of this node has this node as child and this condition holds also
653- * for the own children.
655+ * for the own children.
654656 */
655657 public boolean sanityCheckDoubleLinks () {
656658 if (!root ()) {
@@ -777,7 +779,7 @@ public void addStrategyInfoUndoMethod(StrategyInfoUndoMethod undoMethod) {
777779 /**
778780 * Register a user-defined data in this node info.
779781 *
780- * @param obj an object to be registered
782+ * @param obj an object to be registered
781783 * @param service the key under it should be registered
782784 * @param <T> the type of the object to be registered
783785 */
@@ -788,9 +790,9 @@ public <T> void register(T obj, Class<T> service) {
788790 /**
789791 * Remove a previous registered user-defined data.
790792 *
791- * @param obj registered object
793+ * @param obj registered object
792794 * @param service the key under which the data was registered
793- * @param <T> arbitray object
795+ * @param <T> arbitray object
794796 */
795797 public <T > void deregister (T obj , Class <T > service ) {
796798 if (userData != null ) {
@@ -849,7 +851,8 @@ void setStepIndex(int stepIndex) {
849851 }
850852
851853 /**
852- * Calculates an array is the path from root node to this node. Each entry defines the child to be selected.
854+ * Calculates an array is the path from root node to this node. Each entry defines the child to
855+ * be selected.
853856 *
854857 * @see #traversePath(Iterator)
855858 */
0 commit comments