X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Futil%2FInstanceIdentifier.java;fp=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Futil%2FInstanceIdentifier.java;h=8139d5b50b50bb302d1e5802b5a01ac74c8545b8;hb=9ceed566491d172e02220b04ec6869867f2f2473;hp=4c17fa6154248fb711c7bd844feb60e65cfd4ba3;hpb=3556bca9524bd19e738ac0d86c4e8b4d5add0a21;p=controller.git diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/InstanceIdentifier.java b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/InstanceIdentifier.java index 4c17fa6154..8139d5b50b 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/InstanceIdentifier.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/InstanceIdentifier.java @@ -23,7 +23,6 @@ import org.opendaylight.controller.yang.model.api.type.InstanceIdentifierTypeDef * @see InstanceIdentifierTypeDefinition */ public final class InstanceIdentifier implements InstanceIdentifierTypeDefinition { - private static final QName name = BaseTypes .constructQName("instance-identifier"); private static final String description = "The instance-identifier built-in type is used to " + @@ -36,20 +35,12 @@ public final class InstanceIdentifier implements InstanceIdentifierTypeDefinitio private final InstanceIdentifierTypeDefinition baseType; private final boolean requireInstance; - private InstanceIdentifier(RevisionAwareXPath xpath, boolean requireInstance) { - super(); - path = BaseTypes.schemaPath(name); - this.xpath = xpath; - this.requireInstance = requireInstance; - this.baseType = this; - } - public InstanceIdentifier(final SchemaPath path, RevisionAwareXPath xpath, boolean requireInstance) { super(); this.path = path; this.xpath = xpath; this.requireInstance = requireInstance; - this.baseType = new InstanceIdentifier(xpath, requireInstance); + this.baseType = this; } /*