Make (Mutable)TreeNode a class
[yangtools.git] / data / yang-data-tree-ri / src / main / java / org / opendaylight / yangtools / yang / data / tree / impl / node / AbstractContainerNode.java
index 294319abf195d7670969e57926843e2e5e57dc1d..873309d491a5fc3146c9fc1aaa3f1ab5c351f5f1 100644 (file)
@@ -16,17 +16,17 @@ import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
  * A TreeNode capable of holding child nodes. The fact that any of the children
  * changed is tracked by the subtree version.
  */
-abstract class AbstractContainerNode extends AbstractTreeNode {
-    protected AbstractContainerNode(final NormalizedNode data, final Version version) {
+abstract class AbstractContainerNode extends TreeNode {
+    AbstractContainerNode(final NormalizedNode data, final Version version) {
         super(data, version);
     }
 
     @SuppressWarnings("unchecked")
-    protected final DistinctNodeContainer<PathArgument, NormalizedNode> castData() {
+    final DistinctNodeContainer<PathArgument, NormalizedNode> castData() {
         return (DistinctNodeContainer<PathArgument, NormalizedNode>) getData();
     }
 
-    protected final @Nullable TreeNode getChildFromData(final PathArgument childId) {
+    final @Nullable TreeNode getChildFromData(final PathArgument childId) {
         // We do not cache the instantiated node as it is dirt cheap
         return getChildFromData(castData(), childId, getVersion());
     }