X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Futil%2FInt16.java;h=0e100dc79077d846d2f0ae83ce3dd4768cefdcec;hb=refs%2Fchanges%2F60%2F260%2F2;hp=750dff5c7a5e9d88094c728f097a7e1c0ca81809;hpb=184e4f61d034f6c83da75de288d4f56ec48f60bf;p=controller.git diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int16.java b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int16.java index 750dff5c7a..0e100dc790 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int16.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int16.java @@ -28,10 +28,18 @@ public class Int16 extends AbstractSignedInteger { private Short defaultValue = null; private static final String description = "int16 represents integer values between -32768 and 32767, inclusively."; + private final IntegerTypeDefinition baseType; + + private Int16() { + super(name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + this.baseType = this; + } public Int16(final List actualPath, final URI namespace, final Date revision) { super(actualPath, namespace, revision, name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + this.baseType = new Int16(); + } public Int16(final List actualPath, final URI namespace, @@ -39,11 +47,12 @@ public class Int16 extends AbstractSignedInteger { final String units, final Short defaultValue) { super(actualPath, namespace, revision, name, description, rangeStatements, units); this.defaultValue = defaultValue; + this.baseType = new Int16(); } @Override public IntegerTypeDefinition getBaseType() { - return this; + return baseType; } @Override