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

Jean-Noel Rouvignac
27.41.2015 01a5c5402110a4748d0856e6c3b3a1f34f3d7976
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, April 27, 2015 11:41 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, April 27, 2015 11:41 +0200
commit01a5c5402110a4748d0856e6c3b3a1f34f3d7976
tree 896d7d0ad8a58e1dc3f3456db6e51b57242021ab tree | zip | gz
parent eee78088f0199b40f38575e0f60dec202926311d view | diff
Code cleanup

Code review: Yannick Lecaillez

DefaultIndex.java:
Added Reject.ifNull() in a few places.
In importPut() and importRemove(), extracted local variable for entryIDSet.
In importRemove(), inverted if statement + improved thrown exception
In several methods used key.toHexPlusAsciiString() instead of StaticUtils.byteArrayToHexPlusAscii().
In computeEntryIDSet(), extracted nbDeleted local variable + simplified the code.
1 files modified
74 ■■■■■ changed files
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DefaultIndex.java 74 ●●●●● diff | view | raw | blame | history