Detector: | Tikanga |
Target: | project ' synthetic_directives ' versionjsl |
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: | mubench/examples/directives/Repetitive.java |
In Method: | misuse(Collection) |
Code with Misuse: |
|
Code with Pattern(s): |
|