Gilles, I do not understand why a non-monotone collection should throw a IllegalArgumentException...? There is nothing wrong with the argument, it just is not in corrected order. Wouldn't it be better to return a false?
We have: if (!ok && abort) { throw new NonMonotonousSequenceException(val[i], previous, i, dir, strict); } Why throw this? Why not return false and let the code calling this method decide if it wants to throw an exception? On Wed, Sep 21, 2011 at 5:56 PM, Gilles Sadowski < gil...@harfang.homelinux.org> wrote: > On Wed, Sep 21, 2011 at 05:17:59PM -0500, Greg Sterijevski wrote: > > Meant to say add, not replace. My apologies. -Greg > > I like this better! ;-) > [But, still, please check the intended meaning of the first argument of > (sub-classes of) "MathIllegalArgumentException".] > > Gilles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > >