Fix child ordering assumptions
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / RootModificationApplyOperation.java
index 651d580ebe4e6a36ac61f805b788fd6ccff4d197..868dfd1d520a011d59e60bfccd8d951390f3d94a 100644 (file)
@@ -61,7 +61,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.tree.spi.Version;
 abstract class RootModificationApplyOperation extends ModificationApplyOperation {
 
     @Override
-    public Optional<ModificationApplyOperation> getChild(final PathArgument child) {
+    public final Optional<ModificationApplyOperation> getChild(final PathArgument child) {
         return getDelegate().getChild(child);
     }
 
@@ -78,17 +78,17 @@ abstract class RootModificationApplyOperation extends ModificationApplyOperation
     }
 
     @Override
-    public boolean equals(final Object obj) {
+    public final boolean equals(final Object obj) {
         return getDelegate().equals(obj);
     }
 
     @Override
-    public int hashCode() {
+    public final int hashCode() {
         return getDelegate().hashCode();
     }
 
     @Override
-    public String toString() {
+    public final String toString() {
         return getDelegate().toString();
     }
 
@@ -97,6 +97,11 @@ abstract class RootModificationApplyOperation extends ModificationApplyOperation
         getDelegate().verifyStructure(modification);
     }
 
+    @Override
+    final ChildTrackingPolicy getChildPolicy() {
+        return getDelegate().getChildPolicy();
+    }
+
     /**
      * Return the underlying delegate.
      *