Open raghucssit opened 7 months ago
Thanks for opening your first issue here! :smiley: Please check our contributing guideline. Especially when you report a problem, make sure you share a Minimal, Complete, and Verifiable example to reproduce it in this issue.
This looks like an opposite case of Infinite loop. i.e. Loop can never be entered making statements inside for loop useless.
Loop can't be entered. So can never go infinite.
:+1:
I wonder if this is just wrong bug / message reported?
I think so. This is more of dead code scenario.
I think https://github.com/spotbugs/spotbugs/pull/2073 could help solve this issue.