EXP00-J. Use the same type for the second and third operands in conditional expressions
EXP02-J. Do not ignore values returned by methods
EXP03-J. Do not compare string objects using equality or relational operators
EXP04-J. Be wary of invisible implicit casts when using compound assignment operators
EXP05-J. Be careful about the wrapper class and autoboxing
EXP06-J. Be aware of the short-circuit behavior of the conditional AND and OR operators
EXP07-J. Do not diminish the benefits of constants by assuming their values in expressions
EXP01-J. Do not depend on operator precedence while using expressions containing side-effects
Recommendation |
Severity |
Likelihood |
Remediation Cost |
Priority |
Level |
|---|---|---|---|---|---|
EXP00-J |
low |
unlikely |
medium |
P2 |
L3 |
EXP01-J |
TODO |
TODO |
TODO |
TODO |
TODO |
EXP02-J |
medium |
probable |
medium |
P8 |
L2 |
EXP03-J |
low |
unlikely |
medium |
P2 |
L3 |
EXP04-J |
low |
unlikely |
medium |
P2 |
L3 |
EXP05-J |
low |
probable |
high |
P2 |
L3 |
EXP07-J |
low |
unlikely |
medium |
P2 |
L3 |
DCL01-J. Use 'L', not 'l', to indicate a long value The CERT Sun Microsystems Secure Coding Standard for Java EXP00-J. Use the same type for the second and third operands in conditional expressions