Affects PMD Version:
6.26.0
Rule: UnusedPrivateField
Description:
I am using two objects of the same class for comparison. The class contains private fields and the lombok annotation EqualsAndHashCode . This implementation causes an false positive response.
Exception Stacktrace:
.(TestClass.java:10)
at line `8` and column `13`
Perhaps 'value' could be replaced by a local variable.
Code Sample demonstrating the issue:
@EqualsAndHashCode public class TestClass { private int value; public TestClass(int value) { this.value = value; } }
Steps to reproduce:
Please provide detailed steps for how we can reproduce the bug.
See code sample.
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4