commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [Collections] MapUtils.getInteger
Date Thu, 14 Jan 2010 23:20:02 GMT
On 14/01/2010, E. Michael Akerman <mike@exchange.uark.edu> wrote:
> > Which library are you referring to?
> >
>
>  Collections 3.2.1
>
>  ---
>
>
>  Commons Collections MapUtils.getInteger(Map,Object) sends:
>
>    Exception: java.text.ParseException: Unparseable number: ""
>
>  To System.out when invoked on an empty String.

Yes, there is a call to logInfo() if the parse fails.

>    The document reflects that if conversion fails, "null" is returned --
> which I was quite happy with.  However,  there's no mention of the side
> effect on the System.out, and it's filling up my server logs.
>
>  Can either the A) documentation be updated or the B) code modified to
> remove the garbage on System.out?
>
>  I'd be happy to offer a change for either "A" or "B" of the above.

Can you file a JIRA issue for this please?

>  Michael Akerman
>  Systems Analyst
>  University IT Services
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> user-unsubscribe@commons.apache.org
>  For additional commands, e-mail: user-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message