Remove use of UnsignedBytes.toInt() 45/86745/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 6 Jan 2020 15:33:11 +0000 (16:33 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 6 Jan 2020 15:53:05 +0000 (16:53 +0100)
commit57c64bf6cae32b18b36956b33a3c956d9f0328e4
tree61cf494e809b6b3a0a727c59f96d04e755e74a08
parente148f71d366c2ed0ab81edaadb8a4603c3bf9c90
Remove use of UnsignedBytes.toInt()

As per javadoc, Java 8 users should be using Byte.toUnsignedInt(),
do precisely that -- except where we are getting input from Netty,
where we use readUnsignedByte() instead.

Change-Id: I519b0bad54101d73127b72b2ae67a4f046cac2a6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
util/src/main/java/org/opendaylight/protocol/util/Ipv4Util.java
util/src/main/java/org/opendaylight/protocol/util/Ipv6Util.java