X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-data-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fdata%2Futil%2FCompositeNodeDataWithSchema.java;h=8d6bf20a5db4acb109bf9b9af1194dd1b2e4575c;hb=bb60da5fe2d1928defb46ed92b290cfff93dcd81;hp=9b4dd3a164ddbe50c9d0ddce4d846fb2d74ecda5;hpb=9f7f729e68fcd18e5f7e3b15450b91051fcfb99a;p=yangtools.git diff --git a/yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/CompositeNodeDataWithSchema.java b/yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/CompositeNodeDataWithSchema.java index 9b4dd3a164..8d6bf20a5d 100644 --- a/yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/CompositeNodeDataWithSchema.java +++ b/yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/CompositeNodeDataWithSchema.java @@ -196,7 +196,7 @@ public class CompositeNodeDataWithSchema extends Abstr augSchema = null; } - // FIXME: 6.0.0: use policy once we have removed addChild() visibility + // FIXME: 7.0.0: use policy to determine if we should reuse or replace the child if (augSchema != null) { augmentationsToChild.put(augSchema, newChild); @@ -296,7 +296,7 @@ public class CompositeNodeDataWithSchema extends Abstr final DataSchemaNode child) { if (parent instanceof AugmentationTarget && !(parent instanceof ChoiceSchemaNode)) { for (AugmentationSchemaNode augmentation : ((AugmentationTarget) parent).getAvailableAugmentations()) { - DataSchemaNode childInAugmentation = augmentation.getDataChildByName(child.getQName()); + DataSchemaNode childInAugmentation = augmentation.dataChildByName(child.getQName()); if (childInAugmentation != null) { return augmentation; }