BUG-869: added proper handling of nullable parameter
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / UnknownType.java
index 2e23b81db600af9e5db25af9b484a543aee50527..f32c16f8bf9b7433d001d0c6c1b84ff0ac49cb7b 100644 (file)
@@ -25,9 +25,7 @@ import org.opendaylight.yangtools.yang.model.api.type.UnknownTypeDefinition;
  * Unknown type definition is derived type, for
  * which base built-in type is not yet known. This types
  * are possible during parsing and resolving of YANG model
- * without all requisites allready processed.
- *
- *
+ * without all requisites already processed.
  */
 public final class UnknownType implements UnknownTypeDefinition {
 
@@ -66,14 +64,14 @@ public final class UnknownType implements UnknownTypeDefinition {
 
         public Builder(final QName name, final String description, final String reference) {
             this.name = name;
-            this.path = BaseTypes.schemaPath(name);
+            this.path = SchemaPath.create(true, name);
             this.description = description;
             this.reference = reference;
         }
 
         public Builder(final QName name) {
             this.name = name;
-            this.path = BaseTypes.schemaPath(name);
+            this.path = SchemaPath.create(true, name);
         }
 
         public Builder description(final String description) {