Truely false

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?


Anonymous said...

Jesus Christ :-|

Mastermnd said...

Unfortunately, you are not alone. I have also seen this (and other horrendous malpractices) happen.

<sarcasm>Now I just wonder, why didn't they use regular expressions instead</sarcasm> LOL.

Anonymous said...

Casino queen: online casinos are giving new players $750
Casino queen: クイーンカジノ online casinos are giving new players $750 bonus! Learn more about online casino queen slots and other games here.Casino King 메리트카지노총판 Megaways: 20 free spins no deposit BonusPlay For Real Money: 1xMobile Slots: fun88 vin 488casino Slots, 2Wild West Slot, Sweet Bonanza

kahleazahorsky said...

Theking of Dealer
The world famous poker software business in the world, in charge of high-end and all-important card games including the likes of the world's top poker  Rating: 9.4/10 · ‎Review by 카지노 사이트 thekingofdealer.com