On 23 November 2013 16:05, sebb <seb...@gmail.com> wrote:
>Indeed; auto-unboxing can generate an NPE under some circumstances.
> And I found at least one case where the auto-boxing was hiding a bug
> (sorry, no longer have the details).

IIRC the vars I have unboxed were only constant values. I can't
imagine how they can generate a NPE.

> Note also that removing explicit [un]boxing does not change the
> generated code, so I would not class it as an optimisation.

The code is less verbose so I consider it a good optimisation in terms
of readability (calling every variables with just an alphabetic letter
doesn't change the generated code as well).

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

Reply via email to