vivekkoya / classfiles

Non-static nested class found JAVA-W1019
Bug risk
Minor
a year agoa year old
Node will hold a reference to the enclosing class instance, is this required?
42        }
43    }
44
45    class Node {46        // Integer data4748        public Integer data;49        public Node nextNode;5051        // Previously, Object data52        Node(Node nextNode, Integer data) {53            this.nextNode = nextNode;54            this.data = data;55        }56    }57
58}