Use Uint constants in base types
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / type / BaseUint8Type.java
index 2a3d481208f7ae45c90015f5bc6c7818f582b6da..5c33c0c141a441885b4a8db08732f0399f2f0c3c 100644 (file)
@@ -17,7 +17,7 @@ final class BaseUint8Type extends AbstractRangeRestrictedBaseType<Uint8TypeDefin
     static final @NonNull BaseUint8Type INSTANCE = new BaseUint8Type();
 
     private BaseUint8Type() {
-        super(BaseTypes.UINT8_QNAME, Uint8.valueOf(0), Uint8.valueOf(255));
+        super(BaseTypes.UINT8_QNAME, Uint8.ZERO, Uint8.MAX_VALUE);
     }
 
     @Override