Paul `Order in Chaos` Cantrell wrote:
Here's a page explaining 1.4's assertions. I highly recommend reading it -- it will short-circuit a lot of the discussion that Ola's question is bound to generate:
http://java.sun.com/j2se/1.4/docs/guide/lang/assert.html
JDK 1.4's assertion facilities make most of Ola's examples too trivial to warrant helper methods, IMO -- the following all seem quite clear and concise :
assert object != null;
assert array.length != 0;
assert !coll.isEmpty();
assert str.size() != 0;
But there are people like me how must run a JDK below 1.4...
Bye Oliver -- To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>
