CodePro Code Audit for CodePro Analytix Evaluation

This document contains the results of auditing CodePro Analytix Evaluation at 6/19/09 11:00 AM, using the default audit rule set.

 
Violation Counts by Severity
Violation SeverityViolation Count
High0
Medium9
Low0
    
Violations by Audit Rule
 
Append String (1) [top]
Violation Recommendation Severity Resource Line
String literal can be replaced by a character literal Replace the string literal with a character literal. Medium MoneyBag.java 145
 
Empty Catch Clause (1) [top]
Violation Recommendation Severity Resource Line
Empty catch clause for exception e Delete the empty catch clause. Medium CarRental.java 73
 
Log Exceptions (1) [top]
Violation Recommendation Severity Resource Line
Caught exception not logged Use one of the logging methods to log the exception. Medium CarRental.java 73
 
Non-case Label in Switch (1) [top]
Violation Recommendation Severity Resource Line
Non-case label in switch: case10 Add the keyword "case" or remove the label. Medium Samples.java 76
 
Obey General Contract of Equals (2) [top]
Violation Recommendation Severity Resource Line
Missing identity check Add a test for object identity. Medium Money.java 38
Missing identity check Add a test for object identity. Medium MoneyBag.java 71
 
String Comparison (1) [top]
Violation Recommendation Severity Resource Line
Cannot compare strings using the equals (==) operator Replace the comparison with equals(). Medium Samples.java 30
 
Unused Label (1) [top]
Violation Recommendation Severity Resource Line
Unused label: case10 Delete the unused label. Medium Samples.java 76
 
Use charAt() Rather Than startsWith() (1) [top]
Violation Recommendation Severity Resource Line
Use charAt() rather than startsWith() Replace with a call to charAt(). Medium CustomerUsage.java 26
Generated at 6/19/09 11:00 AM Powered by CodePro AnalytiX