Migrate rawStatementArgument()/getStatementSourceReference() callers
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / key / KeyStatementSupport.java
index d4ab2e686962619337ad94dce01fa26ce59450f0..7d7190aa000ae5d335c696260382c4e78142ad5c 100644 (file)
@@ -56,8 +56,8 @@ public final class KeyStatementSupport
 
         // Throws NPE on nulls, retains first inserted value, cannot be modified
         final ImmutableSet<QName> ret = builder.build();
-        SourceException.throwIf(ret.size() != tokens, ctx.getStatementSourceReference(),
-                "Key argument '%s' contains duplicates", value);
+        SourceException.throwIf(ret.size() != tokens, ctx.sourceReference(), "Key argument '%s' contains duplicates",
+            value);
         return ret;
     }