Shorted Decimal64Specification 09/29709/5
authorRobert Varga <robert.varga@pantheon.sk>
Sat, 14 Nov 2015 21:06:50 +0000 (22:06 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 16 Nov 2015 11:29:02 +0000 (11:29 +0000)
Import Decimal64Specification directly.

Change-Id: Icb3d442331784c6d9704c124b3cff562b350fb75
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/Decimal64SpecificationImpl.java

index ebd7bce344b6790aea2d77a658ce72769b68de44..4ac0251e614ca914716fc23df08c6c90f5ed6523 100644 (file)
@@ -11,42 +11,39 @@ import org.opendaylight.yangtools.yang.model.api.Rfc6020Mapping;
 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.FractionDigitsStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.RangeStatement;
-import org.opendaylight.yangtools.yang.model.api.stmt.TypeStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.TypeStatement.Decimal64Specification;
 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
 import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
 import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.type.Decimal64SpecificationEffectiveStatementImpl;
 
-public class Decimal64SpecificationImpl extends AbstractDeclaredStatement<String> implements
-        TypeStatement.Decimal64Specification {
+public class Decimal64SpecificationImpl extends AbstractDeclaredStatement<String> implements Decimal64Specification {
 
-    protected Decimal64SpecificationImpl(StmtContext<String, TypeStatement.Decimal64Specification, ?> context) {
+    protected Decimal64SpecificationImpl(final StmtContext<String, Decimal64Specification, ?> context) {
         super(context);
     }
 
-    public static class Definition
-            extends
-            AbstractStatementSupport<String, TypeStatement.Decimal64Specification, EffectiveStatement<String, TypeStatement.Decimal64Specification>> {
+    public static class Definition extends
+            AbstractStatementSupport<String, Decimal64Specification, EffectiveStatement<String, Decimal64Specification>> {
 
         public Definition() {
             super(Rfc6020Mapping.TYPE);
         }
 
         @Override
-        public String parseArgumentValue(StmtContext<?, ?, ?> ctx, String value) throws SourceException {
+        public String parseArgumentValue(final StmtContext<?, ?, ?> ctx, final String value) throws SourceException {
             return value;
         }
 
         @Override
-        public TypeStatement.Decimal64Specification createDeclared(
-                StmtContext<String, TypeStatement.Decimal64Specification, ?> ctx) {
+        public Decimal64Specification createDeclared(final StmtContext<String, Decimal64Specification, ?> ctx) {
             return new Decimal64SpecificationImpl(ctx);
         }
 
         @Override
-        public EffectiveStatement<String, TypeStatement.Decimal64Specification> createEffective(
-                StmtContext<String, TypeStatement.Decimal64Specification, EffectiveStatement<String, TypeStatement.Decimal64Specification>> ctx) {
+        public EffectiveStatement<String, Decimal64Specification> createEffective(
+                final StmtContext<String, Decimal64Specification, EffectiveStatement<String, Decimal64Specification>> ctx) {
             return new Decimal64SpecificationEffectiveStatementImpl(ctx);
         }
     }