Migrate rawStatementArgument()/getStatementSourceReference() callers
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / revision / RevisionStatementSupport.java
index 78d303fd5bb3521e95a16d1d7d77dbf19a6220be..f6f83e7b9303abde4d8e843007a22152ed23cebc 100644 (file)
@@ -43,7 +43,7 @@ public final class RevisionStatementSupport
         try {
             return Revision.of(value);
         } catch (DateTimeParseException e) {
-            throw new SourceException(ctx.getStatementSourceReference(), e,
+            throw new SourceException(ctx.sourceReference(), e,
                 "Revision value %s is not in required format yyyy-MM-dd", value);
         }
     }