Just started working on a codebase where one of my predecessors consistently uses the following construct when testing if a Boolean
variable is false
:
if ((someBooleanVariable.toString().equals("false")) == true) { }
Beautiful, isn't it?
Claus Nielsen's Blog
Just started working on a codebase where one of my predecessors consistently uses the following construct when testing if a Boolean
variable is false
:
Beautiful, isn't it?