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 / Leafref.java
index d17843af898b44adb1d6a5b2c9d140e446e2675b..bd42903184b68a472bf93caa670fe752f1d0c34e 100644 (file)
@@ -33,17 +33,10 @@ public final class Leafref implements LeafrefTypeDefinition {
     private final String units = "";
     private final LeafrefTypeDefinition baseType;
 
-    private Leafref(final RevisionAwareXPath xpath) {
-        this.xpath = xpath;
-        this.path = BaseTypes.schemaPath(name);
-        this.baseType = this;
-    }
-
     public Leafref(final SchemaPath path, final RevisionAwareXPath xpath) {
-        super();
         this.path = path;
         this.xpath = xpath;
-        baseType = new Leafref(xpath);
+        baseType = this;
     }
 
     /*