Rule Definition
Instantiating a Boolean object consumes memory and CPU but does not bring value.
Remediation
Use Boolean.TRUE or Boolean.FALSE instead.
Violation Code Sample
Boolean b = new Boolean( false);
Fixed Code Sample
Boolean b = Boolean.FALSE; or Boolean variable = Boolean.valueOf(false);
Reference
http://www.programmr.com/blogs/two-things-every-java-developer-should-know-about-booleans
Related Technologies
JEE
Technical Criterion
Efficiency - Memory, Network and Disk Space Management
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.