On 12/20/07 7:06 AM, "Tore Halset" <halse..vv.ntnu.no> wrote:
>
> I am currently -1 to autoboxing, but Integer.valueOf(int) should not
> be a problem for anyone.
Why is that? I was just about to commit changes that replaces all of the
explicit unboxing and boxing code with autoboxing. This would improve code
clarity in various places.
Autoboxing yields nearly identical bytecode to manual boxing/unboxing
operations. The only time I've found it's problematic is when you forget
what type you're working with to the point that you really should be using
the object type or the primitive type natively.
-- Kevin
This archive was generated by hypermail 2.0.0 : Thu Dec 20 2007 - 08:35:58 EST