Remove unneeded masking in Uint{8,16}.valueOf() 76/84476/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 15 Sep 2019 17:31:20 +0000 (19:31 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 15 Sep 2019 17:31:20 +0000 (19:31 +0200)
commit12981cbad22d548a91b1fc7fc5297d0c85905fec
tree80ae2ef0a5e051caccc5e981f4c8d55618ecef7d
parent5b414cbb3a9578e4cb1c2c2f68824e65c8023ff0
Remove unneeded masking in Uint{8,16}.valueOf()

As we are checking the range of the input, we can just narrow input
value, saving us a few instructions in the process.

Change-Id: I2ff52b1a75565da76804e4f02114249200e7d841
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint16.java
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint8.java