JDK 5 – auto-boxing best practices

Just wanted to discuss quickly a few simple best practices for auto-boxing in Java. This will help prevent shooting ones self in the foot. These suggestions go back to my rule of thumb for auto-boxing: If you can use primitives do it, if you can’t don’t. So here are a few simple auto-boxing rules. These […]

JDK 5 – auto-boxing

There has been a lot of talk lately about the JDK 5 auto-boxing issues and how everyone thinks it should work or whether or not it should even exist. The main thread I found and posted to was over here. Just wanted to discuss this in some more detail. Auto-boxing is 100% code-generation. It is […]