As I’ve mentioned before, I spend days working on a fairly large Java system. The odd piece of code has obviously slipped through code review, probably due to being written the day before a deadline or some such. Today I found this variable declaration:
boolean isFound = Boolean.TRUE.booleanValue();
I showed a cow-orker, who quipped, “Tell me it’s not true.”
I’m sorry, but it’s as true as boolean can get.
Comments
Believe me, it's true.
http://sourceforge.net/forum/forum.php?thread_id=992327&forum_id=195199