Expressions (EXP)
Rules
- EXP00-J. Do not ignore values returned by methods
- EXP01-J. Do not use a null in a case where an object is required
- EXP02-J. Do not use the Object.equals() method to compare two arrays
- EXP03-J. Do not use the equality operators when comparing values of boxed primitives
- EXP04-J. Do not pass arguments to certain Java Collections Framework methods that are a different type than the collection parameter type
- EXP05-J. Do not follow a write by a subsequent write or read of the same object within an expression
- EXP06-J. Expressions used in assertions must not produce side effects
- EXP07-J. Prevent loss of useful data due to weak references
Risk Assessment Summary
| Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| EXP00-J | Medium | Probable | Yes | No | P8 | L2 |
| EXP01-J | Low | Likely | No | Yes | P6 | L2 |
| EXP02-J | Low | Likely | Yes | Yes | P9 | L2 |
| EXP03-J | Low | Likely | Yes | Yes | P9 | L2 |
| EXP04-J | Low | Probable | Yes | No | P4 | L2 |
| EXP05-J | Low | Unlikely | Yes | No | P2 | L3 |
| EXP06-J | Low | Unlikely | Yes | Yes | P3 | L3 |


