Remove SchemaPath from TypeDefinition implementations
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / type / InstanceIdentifierSpecificationSupport.java
index faf68b70da4025409fbbe5bfe8788c770a7ccf2c..fa0d47572dd9b7ef0f93973afe5a3ab180723eb0 100644 (file)
@@ -60,7 +60,7 @@ final class InstanceIdentifierSpecificationSupport extends AbstractStatementSupp
             final Current<String, InstanceIdentifierSpecification> stmt,
             final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
         final InstanceIdentifierTypeBuilder builder = RestrictedTypes.newInstanceIdentifierBuilder(
-            BaseTypes.instanceIdentifierType(), stmt.wrapSchemaPath());
+            BaseTypes.instanceIdentifierType(), stmt.argumentAsTypeQName());
 
         // TODO: we could do better here for empty substatements, but its really splitting hairs
         for (EffectiveStatement<?, ?> subStmt : substatements) {