False positive reported by Unused "private" methods should be removed

java

(Ankur) #1

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.

UnusedPrivateMethod

UnusedMethodTest.txt (256 Bytes)

Type1.txt (197 Bytes)
Type2.txt (197 Bytes)