-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[java] ForLoopCanBeForeach should consider iterating on this
#833
Labels
a:false-negative
PMD doesn't flag a problematic piece of code
Milestone
Comments
oowekyala
added a commit
to oowekyala/pmd
that referenced
this issue
Feb 19, 2021
Fixes pmd#833 Remove unresolved things from tests
oowekyala
added a commit
to oowekyala/pmd
that referenced
this issue
Mar 8, 2021
5 tasks
adangel
added a commit
that referenced
this issue
Mar 26, 2021
This has been fixed with PMD 7.0.0-rc1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affects PMD Version: 6.0.0
Rule: ForLoopCanBeForeach
Description: The rule should report loops that are iterated on this if possible. For now it considers neither this.iterator() nor just iterator(). Followup on #800
Code Sample demonstrating the issue:
Running PMD through: CLI
The text was updated successfully, but these errors were encountered: