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

Jean-Noel Rouvignac
28.02.2014 8f9dcdecf7a0513387fd05ebdd5931e619224196
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
commit8f9dcdecf7a0513387fd05ebdd5931e619224196
tree 9d8df1891a845d84e811650b1a50741acc7fea3a tree | zip | gz
parent 6ffeb458bbbd9baac49200025d3d4b046fe3dd80 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-core/src/main/java/org/forgerock/opendj/ldap/ByteString.java 61 ●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/ByteStringTestCase.java 7 ●●●●● diff | view | raw | blame | history