Fix for bug 830. 25/6325/2
authorHideyuki Tai <h-tai@cd.jp.nec.com>
Thu, 30 Jan 2014 10:17:25 +0000 (02:17 -0800)
committerHideyuki Tai <h-tai@cd.jp.nec.com>
Mon, 28 Apr 2014 02:56:06 +0000 (02:56 +0000)
commit326aff85309d6ddbf7ccc74d4fc46dc0e0b4b002
tree5e393d0068d09168aa1e89962ffe9f72c197e292
parent6a27dd487183ba0afeeac82c48bf204a2c5dd0a2
Fix for bug 830.

Fixed bugs in getUnsigned methods of NetUtils class.

 * Fixed bugs that getUnsignedByte(byte) and getUnsignedShort(short)
   handled 0 incorrectly.
 * Added tests for getUnsignedByte(byte) and getUnsignedShort(short).

Change-Id: Ie67fb5c07bed31d16d4a52068dda7735fb7cd5e2
Signed-off-by: Hideyuki Tai <h-tai@cd.jp.nec.com>
(cherry picked from commit 37d7a25950e5132d7dabfe4a66d81becbc6ef4dd)
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/utils/NetUtils.java
opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/utils/NetUtilsTest.java