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

Jean-Noel Rouvignac
23.12.2015 5ff5b99fb9c9998d027b0369d6de416a8e148aeb
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, March 23, 2015 11:12 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, March 23, 2015 11:12 +0100
commit5ff5b99fb9c9998d027b0369d6de416a8e148aeb
tree 7b9a1631d0426f01d4fc4ccffab99259a8612a0e tree | zip | gz
parent 58f63a9d10fedc902b3315f64d5fcedf82a9fbf1 view | diff
Ensured IndexQuery.evaluate() never returns null + updated javadoc to mention it.
Client code assumes that the returned value will never be null anyway.


IndexQuery.java:
In evaluate(), modified the javadoc to mention returned value can never be null.
In IntersectionIndexQuery and UnionIndexQuery evaluate methods, got rid of null checks.

Index.java:
In readRange(), modified the javadoc to mention returned value can never be null.
In read(), added javadoc.
In containsID() and read(), slightly modified the code to make it more compact and more readable.
2 files modified
59 ■■■■■ changed files
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/Index.java 35 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/IndexQuery.java 24 ●●●● diff | view | raw | blame | history