Bug 4540: Yang parser exceptions should follow consistent path
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / DeviateStatementImpl.java
index 6d04cbdad1bb1ecec9a271b5a89ab8f843d4b428..0e0886f729ee2bb3aaa9d92d24607cf8c1926227 100644 (file)
@@ -40,7 +40,8 @@ public class DeviateStatementImpl extends AbstractDeclaredStatement<Deviation.De
         super(context);
     }
 
-    public static class Definition extends AbstractStatementSupport<Deviation.Deviate,DeviateStatement,EffectiveStatement<Deviation.Deviate,DeviateStatement>> {
+    public static class Definition extends AbstractStatementSupport<Deviation.Deviate, DeviateStatement,
+            EffectiveStatement<Deviation.Deviate, DeviateStatement>> {
 
         public Definition() {
             super(Rfc6020Mapping.DEVIATE);
@@ -48,7 +49,7 @@ public class DeviateStatementImpl extends AbstractDeclaredStatement<Deviation.De
 
         @Override public Deviation.Deviate parseArgumentValue(
                 StmtContext<?, ?, ?> ctx, String value) throws SourceException {
-            return Utils.parseDeviateFromString(value);
+            return Utils.parseDeviateFromString(ctx, value);
         }
 
         @Override public DeviateStatement createDeclared(
@@ -57,7 +58,8 @@ public class DeviateStatementImpl extends AbstractDeclaredStatement<Deviation.De
         }
 
         @Override public EffectiveStatement<Deviation.Deviate, DeviateStatement> createEffective(
-                StmtContext<Deviation.Deviate, DeviateStatement, EffectiveStatement<Deviation.Deviate, DeviateStatement>> ctx) {
+                StmtContext<Deviation.Deviate, DeviateStatement, EffectiveStatement<Deviation.Deviate,
+                        DeviateStatement>> ctx) {
             return new DeviateEffectiveStatementImpl(ctx);
         }