SonarQube v6.7.4
SonarJava 4.15.0.12310
The rule “UnusedPrivateMethod” - “Unused “private” methods should be removed” reports false positive in case of method overload.
See attachments and the violation reported.
UnusedMethodTest.txt (256 Bytes)
SonarQube v6.7.4
SonarJava 4.15.0.12310
The rule “UnusedPrivateMethod” - “Unused “private” methods should be removed” reports false positive in case of method overload.
See attachments and the violation reported.
UnusedMethodTest.txt (256 Bytes)
I could not reproduce the issue on latest version of sonarjava.
This should not happen thanks to the fix provided in https://jira.sonarsource.com/browse/SONARJAVA-2204 which should be part of SONARJAVA since version 4.8.
If the problem persists, can you please try to upgrade to latest version of SonarJava and provides log of analysis ? Thanks.