On Mon, Nov 16, 2009 at 11:48 PM, Henri Yandell <[email protected]> wrote:
> On Mon, Nov 16, 2009 at 10:16 AM, Paul Benedict <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to