| Detector: | MuDetectOPAL_180217 |
| Target: | project 'synthetic' version repetitive |
| Misuse: | misuse 'repetitive' |
Details about the known misuse from the MUBench dataset.
| Description: | Loops over a collection, only to ensure it is not empty (every subsequent iteration performs the exact same computation). |
| Fix Description: | Replace the loop with a check. |
| Violation Types: |
|
| In File: | Repetitive.java |
| In Method: | misuse(Collection) |
| Code with Misuse: |
|
| Code with Pattern(s): |
|