This document contains the results of auditing CodePro Analytix Evaluation at 6/19/09 11:00 AM, using the default audit rule set.
This document contains the results of auditing CodePro Analytix Evaluation at 6/19/09 11:00 AM, using the default audit rule set.
|
|
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 |
Violation | Recommendation | Severity | Resource | Line |
---|---|---|---|---|
Empty catch clause for exception e | Delete the empty catch clause. | Medium | CarRental.java | 73 |
Violation | Recommendation | Severity | Resource | Line |
---|---|---|---|---|
Caught exception not logged | Use one of the logging methods to log the exception. | Medium | CarRental.java | 73 |
Violation | Recommendation | Severity | Resource | Line |
---|---|---|---|---|
Non-case label in switch: case10 | Add the keyword "case" or remove the label. | Medium | Samples.java | 76 |
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 |
Violation | Recommendation | Severity | Resource | Line |
---|---|---|---|---|
Cannot compare strings using the equals (==) operator | Replace the comparison with equals(). | Medium | Samples.java | 30 |
Violation | Recommendation | Severity | Resource | Line |
---|---|---|---|---|
Unused label: case10 | Delete the unused label. | Medium | Samples.java | 76 |
Violation | Recommendation | Severity | Resource | Line |
---|---|---|---|---|
Use charAt() rather than startsWith() | Replace with a call to charAt(). | Medium | CustomerUsage.java | 26 |