On 12/20/07 7:06 AM, "Tore Halset" <[EMAIL PROTECTED]> 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
