Revert Merge "Bug 2366: new parser - Types & TypeDefs"
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / NumericalRestrictionsImpl.java
index bcf5b34962aa42a8173656a81c4d8462d91de773..2415db62d8f19319f5477331ac374299d45a6fc5 100644 (file)
@@ -1,4 +1,4 @@
-/*
+/**
  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -15,7 +15,6 @@ import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.RangeStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.TypeStatement;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.NumericalRestrictionsEffectiveStatementImpl;
 
 public class NumericalRestrictionsImpl extends AbstractDeclaredStatement<String> implements TypeStatement.NumericalRestrictions{
 
@@ -26,7 +25,7 @@ public class NumericalRestrictionsImpl extends AbstractDeclaredStatement<String>
     public static class Definition extends AbstractStatementSupport<String,TypeStatement.NumericalRestrictions,EffectiveStatement<String,TypeStatement.NumericalRestrictions>> {
 
         public Definition() {
-            super(Rfc6020Mapping.TYPE);
+            super(Rfc6020Mapping.RANGE);
         }
 
         @Override public String parseArgumentValue(StmtContext<?, ?, ?> ctx,
@@ -41,7 +40,7 @@ public class NumericalRestrictionsImpl extends AbstractDeclaredStatement<String>
 
         @Override public EffectiveStatement<String, TypeStatement.NumericalRestrictions> createEffective(
                 StmtContext<String, TypeStatement.NumericalRestrictions, EffectiveStatement<String, TypeStatement.NumericalRestrictions>> ctx) {
-            return new NumericalRestrictionsEffectiveStatementImpl(ctx);
+            throw new UnsupportedOperationException();
         }
     }