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

neil_a_wilson
10.16.2006 03a8edd112da70a92bc56a85db3033029887faba
refs
author neil_a_wilson <neil_a_wilson@localhost>
Friday, November 10, 2006 00:16 +0100
committer neil_a_wilson <neil_a_wilson@localhost>
Friday, November 10, 2006 00:16 +0100
commit03a8edd112da70a92bc56a85db3033029887faba
tree 50e8afc61bd6e821db28e2c92c96637b24128846 tree | zip | gz
parent f2779f45530c0e225e16563a7619a468e809e111 view | diff
Update the Validator class so that the ensureNotNull method always throws
AssertionError if any of the arguments is null, rather than throwing a
NullPointerException if assertions were disabled and an AssertionError if
assertions were enabled. Also, make the ensureTrue method always throw
AssertionError if the provided condition is not true rather than throwing an
IllegalArgumentException if assertions are disabled and AssertionError if
assertions are enabled.

Reviewed By: David Ely
OpenDS Issue Number: 975
1 files modified
77 ■■■■■ changed files
opends/src/server/org/opends/server/util/Validator.java 77 ●●●●● diff | view | raw | blame | history