Speed up SchemaTracker.startContainerNode()
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / codec / Uint16StringCodec.java
index bc99f18f70e47a2f3f9d2ceb11455a59ff758cfb..0867874a7e9312d6e7e000bea4d66db676bc4a3b 100644 (file)
@@ -7,17 +7,18 @@
  */
 package org.opendaylight.yangtools.yang.data.impl.codec;
 
+import org.opendaylight.yangtools.yang.common.Uint16;
 import org.opendaylight.yangtools.yang.data.api.codec.Uint16Codec;
 import org.opendaylight.yangtools.yang.model.api.type.Uint16TypeDefinition;
 
-final class Uint16StringCodec extends AbstractIntegerStringCodec<Integer, Uint16TypeDefinition> implements
+final class Uint16StringCodec extends AbstractIntegerStringCodec<Uint16, Uint16TypeDefinition> implements
         Uint16Codec<String> {
     Uint16StringCodec(final Uint16TypeDefinition typeDef) {
-        super(typeDef, extractRange(typeDef), Integer.class);
+        super(typeDef, extractRange(typeDef), Uint16.class);
     }
 
     @Override
-    protected Integer deserialize(final String stringRepresentation, final int base) {
-        return Integer.valueOf(stringRepresentation, base);
+    protected Uint16 deserialize(final String stringRepresentation, final int base) {
+        return Uint16.valueOf(stringRepresentation, base);
     }
 }