[java] False negative in UnnecessaryLocalBeforeReturn when splitting statements across multiple lines #1775
Labels
a:false-negative
PMD doesn't flag a problematic piece of code
has:pr
The issue is already tackled in a PR
Milestone
Affects PMD Version:
6.13.0
Rule:
UnnecessaryLocalBeforeReturn
Description:
An unnecessary local is missed if chained method calls are split up on separate lines AND the method calls reference another variable.
Code Sample demonstrating the issue:
Running PMD through:
CLI/Gradle
The text was updated successfully, but these errors were encountered: