Rules
| Content by Label | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Risk Assessment Summary
Rule | Severity | Likelihood | Detectable | Repairable |
|---|
Guidelines
EXP00-J. Use the same type for the second and third operands in conditional expressions
EXP01-J. Ensure a null pointer is not dereferenced
EXP00-J. Do not ignore values returned by methods
EXP01-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 of autoboxing when removing elements from a Collection
EXP07-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
EXP05-J. Be aware of integer promotions in binary operators
EXP06-J. Use parentheses for precedence of operation
EXP08-J. Understand the evaluation of expressions containing non short-circuit operators
EXP30-J. Do not depend on operator precedence while using expressions containing side-effects
EXP31-J. Avoid side effects in assertions
EXP03-J. Do not use the equal and not equal operators to compare boxed primitives
EXP02-J. Do not use the equals method to compare the contents of arrays
Risk Assessment Summary
Recommendations
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EXP00-J | Medium | Probable low | unlikely Yes | medium No | P2 P8 | L3 L2 | |||||||
| EXP01-J | Low | low Likely | likely No | high Yes | P3 P6 | L3 L2 | |||||||
| EXP02-J | Low | medium Likely | probable Yes | medium Yes | P8 P9 | L2 | |||||||
| EXP03-J | Low | low Likely | probable Yes | medium Yes | P4 P9 | L3 L2 | |||||||
| EXP04-J | low Low | unlikely Probable | medium Yes | P2 | L3 | EXP05- J | low | probable | low | No | P4 P6 | L2 EXP06 | |
| EXP05-J | low Low | unlikely Unlikely | medium | P2 | L3 | Yes | No | EXP07- J | low | unlikely | medium | P2 | L3 EXP08 |
| EXP06-J | low Low | probable Unlikely | medium | P4 | L3 | ||||||||
EXP09- J | low | probable | medium | P4 | L3 | ||||||||
EXP10- J | low | probable | medium | P4 | L3 |
Rules
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
EXP30- J | low | unlikely | medium | P2 | L3 |
EXP31- J | low | unlikely | low | P3 | L3 |
EXP32- J | low | likely | medium | P6 | L2 |
EXP33- J | low | likely | low | P9 | L2 |
| Yes | Yes | P3 | L3 |
...
DCL04-J. Qualify mathematical constants with the static and final modifiers The CERT Sun Microsystems Secure Coding Standard for Java EXP00-J. Use the same type for the second and third operands in conditional expressions