BUG-994: convert users of SchemaPath constructor
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / util / CopyUtils.java
index 4ab49fea230e960cbc475d6d932a03096ba4d7aa..311d506e0fa583b3f1fbfee65439d3774eefcda9 100644 (file)
@@ -491,7 +491,7 @@ public final class CopyUtils {
             }
         }
 
-        SchemaPath newSchemaPath = new SchemaPath(newPath, true);
+        SchemaPath newSchemaPath = SchemaPath.create(newPath, true);
         return new DataBean(newQName, newSchemaPath);
     }