Modified construction of built-in yang types.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-util / src / main / java / org / opendaylight / controller / yang / model / util / IdentityrefType.java
index 6c4598131e496b405e1183ae521b44e507fb00ce..30f0013d240e7e713882eba614efd4d0cd467091 100644 (file)
@@ -22,27 +22,18 @@ import org.opendaylight.controller.yang.model.api.type.IdentityrefTypeDefinition
  * @see IdentityrefTypeDefinition\r
  */\r
 public final class IdentityrefType implements IdentityrefTypeDefinition {\r
-\r
     private final QName name = BaseTypes.constructQName("identityref");\r
     private final SchemaPath path;\r
     private final String description = "The identityref type is used to reference an existing identity.";\r
     private final String reference = "https://tools.ietf.org/html/rfc6020#section-9.10";\r
     private final IdentityrefTypeDefinition baseType;\r
-\r
     private final QName identity;\r
-\r
-    private String units = "";\r
-\r
-    private IdentityrefType(QName identity) {\r
-        this.identity = identity;\r
-        this.path = BaseTypes.schemaPath(name);\r
-        this.baseType = this;\r
-    }\r
+    private final String units = "";\r
 \r
     public IdentityrefType(QName identity, SchemaPath schemaPath) {\r
         this.identity = identity;\r
         this.path = schemaPath;\r
-        this.baseType = new IdentityrefType(identity);\r
+        this.baseType = this;\r
     }\r
 \r
     @Override\r