False-positive in java:S1144 (Unused “private” methods should be removed)

java:S1144 - Unused “private” methods should be removed

SonarQube Community Edition Version 8.9 (build 43852)

The rule has a false positive when Java class has two private methods with the same name and one of them uses the other.

public class Test {

    public String getValue() {
        return getValue(12);

    private String getValue(Integer number) {
        return getValue("" + number);

    private String getValue(String value) {    // False positive is here
        return value;

This code is valid in my SonarLint IDE plugin but has false positive on our SonarQube server.

Hey there.

How do you go about executing analysis against your SonarQube server (what scanners / commands do you run)? Do you see any warnings/errors in the analysis logs?

Hello Colin
Unfortunately I don’t have access to our corporate SonarQube server/logs and I don’t know scanners/commands we use. I just see this issue in the web interface of our server.
If you give me details how to gather required information or logs, I forward your instructions to our admins and ask them to check.

It’s probably a good idea to ask the developers who run the analysis to look into how the analysis is run.