Propagate symbolic name through transformations
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / ir / IRSchemaSource.java
index 961c381ce3bc1430379bdc3f6219828e2502332a..ed6070f23fbbe390d4d14eb977c19e2b1c83f3bd 100644 (file)
@@ -25,7 +25,7 @@ public final class IRSchemaSource extends AbstractIdentifiable<SourceIdentifier>
     private final @Nullable String symbolicName;
 
     public IRSchemaSource(final @NonNull SourceIdentifier identifier, final @NonNull IRStatement rootStatement,
-            @Nullable final String symbolicName) {
+            final @Nullable String symbolicName) {
         super(identifier);
         this.rootStatement = requireNonNull(rootStatement);
         this.symbolicName = symbolicName;
@@ -44,6 +44,7 @@ public final class IRSchemaSource extends AbstractIdentifiable<SourceIdentifier>
         checkArgument(rootStatement.argument() != null, "Root statement does not have an argument");
     }
 
+    @Deprecated(forRemoval = true)
     public IRSchemaSource(final @NonNull SourceIdentifier identifier, final @NonNull IRStatement rootStatement) {
         this(identifier, rootStatement, null);
     }