| Detector: | MuDetect |
| Target: | project ' synthetic ' versionrepetitive |
| Misuse: | misuse ' repetitive ' |
| Tags: |
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): |
|