commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ola Berg" <ola.b...@ports.se>
Subject Re: [Lang] Assertions?
Date Mon, 21 Oct 2002 15:07:41 GMT
> 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

Excellent. I've just recently upgraded and haven't had the time to check the new features.

> The only one of the examples in Ola's message that isn't trivial with 
> 1.4's assert is "noNullElements".  If there is actually a need for 
> assert utilities, it's for deeper structural checks like that.

But for this we already have the boolean is*** methods in ArrayUtils that one can use in assert
statements.

Case closed! I will go and read up on 1.4.

/O


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message