Clean up TreeNode API
[yangtools.git] / data / yang-data-tree-ri / src / main / java / org / opendaylight / yangtools / yang / data / tree / impl / ContainerModificationStrategy.java
index 67f9a9c332565559b57dfc490f4da218f6e91b55..da1b626c3d28907b8a36d6d634fbdb9959132f14 100644 (file)
@@ -60,7 +60,7 @@ sealed class ContainerModificationStrategy extends DataNodeContainerModification
         }
 
         private @NonNull TreeNode enforce(final TreeNode treeNode) {
-            enforcer.enforceOnData(treeNode.getData());
+            enforcer.enforceOnData(treeNode.data());
             return treeNode;
         }
     }