Convert trivial CopyPolicy users to StatementPolicy
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / position / PositionStatementSupport.java
index 03935e82d577033703cb7a859bf8505ab5e70213..7e88042b19c85acfbfe83ebda76f502c56c80f44 100644 (file)
@@ -26,7 +26,7 @@ public final class PositionStatementSupport
     private static final PositionStatementSupport INSTANCE = new PositionStatementSupport();
 
     private PositionStatementSupport() {
-        super(YangStmtMapping.POSITION);
+        super(YangStmtMapping.POSITION, StatementPolicy.contextIndependent());
     }
 
     public static PositionStatementSupport getInstance() {
@@ -38,7 +38,7 @@ public final class PositionStatementSupport
         try {
             return Uint32.valueOf(value).intern();
         } catch (IllegalArgumentException e) {
-            throw new SourceException(ctx.sourceReference(), e, "Bit position value %s is not valid integer", value);
+            throw new SourceException(ctx, e, "Bit position value %s is not valid integer", value);
         }
     }