On Mon, Nov 16, 2009 at 11:48 PM, Henri Yandell <flame...@gmail.com> wrote:
> On Mon, Nov 16, 2009 at 10:16 AM, Paul Benedict <pbened...@apache.org> wrote:
>> * Is there any benefit to making NumberUtils.min/max accept a variable
>> arguments over a single array?
>
> Seems good.

>From LANG-396:

NumberUtils.min, NumberUtils.max varargs runs into the no overloading
recommendation:

src/test/org/apache/commons/lang/math/NumberUtilsTest.java:[1175,42]
reference to max is ambiguous, both method max(double...) in
org.apache.commons.lang.math.NumberUtils and method max(float...) in
org.apache.commons.lang.math.NumberUtils match

So - tried that, had problems.

Hen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to