YANGTOOLS-621: introduce specialized integer types
[yangtools.git] / yang / yang-data-util / src / main / java / org / opendaylight / yangtools / yang / data / util / codec / AbstractCodecFactory.java
index 79e912176bd939dce62a486563890d3ec045b2d9..f7df44bbf717f41d7f3773893b86349397086818 100644 (file)
@@ -112,13 +112,13 @@ public abstract class AbstractCodecFactory<T extends TypeAwareCodec<?, ?, ?>> {
 
     protected abstract T instanceIdentifierCodec(InstanceIdentifierTypeDefinition type);
 
-    protected abstract T intCodec(IntegerTypeDefinition type);
+    protected abstract T intCodec(IntegerTypeDefinition<?, ?> type);
 
     protected abstract T decimalCodec(DecimalTypeDefinition type);
 
     protected abstract T stringCodec(StringTypeDefinition type);
 
-    protected abstract T uintCodec(UnsignedIntegerTypeDefinition type);
+    protected abstract T uintCodec(UnsignedIntegerTypeDefinition<?, ?> type);
 
     protected abstract T unionCodec(UnionTypeDefinition type, List<T> codecs);
 
@@ -138,9 +138,9 @@ public abstract class AbstractCodecFactory<T extends TypeAwareCodec<?, ?, ?>> {
         if (type instanceof StringTypeDefinition) {
             ret = stringCodec((StringTypeDefinition) type);
         } else if (type instanceof IntegerTypeDefinition) {
-            ret = intCodec((IntegerTypeDefinition) type);
+            ret = intCodec((IntegerTypeDefinition<?, ?>) type);
         } else if (type instanceof UnsignedIntegerTypeDefinition) {
-            ret = uintCodec((UnsignedIntegerTypeDefinition) type);
+            ret = uintCodec((UnsignedIntegerTypeDefinition<?, ?>) type);
         } else if (type instanceof BooleanTypeDefinition) {
             ret = booleanCodec((BooleanTypeDefinition) type);
         } else if (type instanceof DecimalTypeDefinition) {