S2583 - FP in for loop

In the above code potentialSingleNode can obviously be true in later iterations of the for loop.

Hello @renoth

I’m afraid you are facing a known issue: SONARJAVA-2523. This is a tricky one, we don’t have a clear plan on how to fix it.
You should resolve the issue as “false positive” in the meantime.

Best,
Quentin

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.