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

neil_a_wilson
10.16.2006 4f7529141a8b8eb4f5aaf1e4eb0dee2ae0d8a320
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
commit4f7529141a8b8eb4f5aaf1e4eb0dee2ae0d8a320
tree dad083195e29a08cf239068c121517eaf969982d tree | zip | gz
parent 3df93452323631ec7dc0fa7e02bbc939855f65b7 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
opendj-sdk/opends/src/server/org/opends/server/util/Validator.java 77 ●●●●● diff | view | raw | blame | history