Migrate rawStatementArgument()/getStatementSourceReference() callers
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / namespace / NamespaceStatementSupport.java
index 0183cab28ce68fac2f2d63fd92bcc5ee0fed6f2a..548fb5ea0389456c4bde9359b458dafc2ef19574 100644 (file)
@@ -42,7 +42,7 @@ public final class NamespaceStatementSupport
         try {
             return new URI(value);
         } catch (URISyntaxException e) {
-            throw new SourceException(ctx.getStatementSourceReference(), e, "Invalid namespace \"%s\"", value);
+            throw new SourceException(ctx.sourceReference(), e, "Invalid namespace \"%s\"", value);
         }
     }