I know, but I set up my Eclipse to warn against it. Autoboxing is not a problem, but autounboxing is a potential NullPointerException waiting to happen if you're not careful. Because you're not dereferencing anything yourself it will be harder to find the culprit.
Joined: Jan 17, 2010
Marcos Stoppa wrote:At Java 5, was added the called autoboxing. With autoboxing you can create a new Wrapper object, with a new value, without manually boxing and unboxing it.