[java] ForLoopCanBeForeach false positive with method call using index variable #1563
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version:
6.10.0
Rule:
ForLoopCanBeForeach
Description:
I have code very similar to the following that's producing a
ForLoopCanBeForeach
issue, even though I definitely need the index variable.Code Sample demonstrating the issue:
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
Gradle
The text was updated successfully, but these errors were encountered: