private static final PositionStatementSupport INSTANCE = new PositionStatementSupport();
private PositionStatementSupport() {
- super(YangStmtMapping.POSITION);
+ super(YangStmtMapping.POSITION, StatementPolicy.contextIndependent());
}
public static PositionStatementSupport getInstance() {
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);
}
}