mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
28.02.2014 c69ab6507eac70ad2d036db7b9d935de41d26f02
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, October 28, 2014 13:02 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, October 28, 2014 13:02 +0100
commitc69ab6507eac70ad2d036db7b9d935de41d26f02
tree cd0d9e8752c4fc5e7cce7e7467021521109da2be tree | zip | gz
parent 7b0a093f265903cb43d33dac53f76d03df5bd83a view | diff
ByteString.java:
In several methods added short circuit checks to return the EMPTY ByteString instance.
In valueOfHex(), simplified the code by directly returning the EMPTY ByteString instance.
Removed local variables.
Removed uneeded parentheses.

ByteStringTestCase.java:
Added two test cases.
2 files modified
68 ■■■■ changed files
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteString.java 61 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/ByteStringTestCase.java 7 ●●●●● diff | view | raw | blame | history