Use {Byte,Short}.compareUnsigned 85/84285/4
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 10 Sep 2019 04:47:42 +0000 (06:47 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 10 Sep 2019 14:50:34 +0000 (14:50 +0000)
commitf7062d4c12f53b7baae16915e24da890329757c9
treea3a48500932150bcacb16265aa3cc59f4c36e217
parent4dfeef142234a90f7656d1102a3eca1a476e9b14
Use {Byte,Short}.compareUnsigned

Java 9 has these utility methods, use them instead of custom-brewing
an equivalent.

Change-Id: I774f2c0dcfa9f602830a1c98761b36520613bd52
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
yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/Uint16Test.java