Violation | Line |
---|---|
Ensure you override both equals() and hashCode() | 52 |
Violation | Line |
---|---|
Avoid instantiating Boolean objects; you can usually invoke Boolean.valueOf() instead. | 166 |
Avoid unnecessary comparisons in boolean expressions | 199 |
Avoid empty 'if' statements | 210 |
Avoid unnecessary return statements | 217 |
Avoid unnecessary comparisons in boolean expressions | 231 |
Avoid unnecessary return statements | 249 |
Avoid unnecessary comparisons in boolean expressions | 271 |
Avoid unnecessary return statements | 287 |
Avoid unnecessary comparisons in boolean expressions | 309 |
Avoid unnecessary return statements | 326 |
Avoid unnecessary comparisons in boolean expressions | 348 |
Avoid unnecessary return statements | 365 |
Violation | Line |
---|---|
Avoid if (x != y) ..; else ..; | 50 |
The same String literal appears 5 times in this file; the first occurrence is on line 79 | 79 |
Avoid really long methods. | 97 |
Avoid using 'if...else' statements without curly braces | 139 |
Avoid using if statements without curly braces | 140 |
Avoid unnecessary comparisons in boolean expressions | 162 |
Avoid unnecessary comparisons in boolean expressions | 166 |
Violation | Line |
---|---|
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor to silence this warning. | 69 |
Violation | Line |
---|---|
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor to silence this warning. | 107 |