since the latest update(2.3), we are seeing Unused "private" methods should be removed in seemingly random places... they do not appear on the server or using eclipse plugin.
i haven't found a real pattern to the failures, it seems to be when calling methods in the arguments...
here is an example(the classes must be in two files):
Test.java:
package some.package;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Test {
private static final Logger LOGGER = LoggerFactory.getLogger(Test.class);
private Test(){}
public static void test(Something something) {
testError(something.getString());
}
private static void testError(String someString) {
LOGGER.info(someString);
}
}
Something.java:
package some.package;
public class Something {
public String getString() {
return "test";
}
}
you should get the Unused "private" methods should be removed error: Remove this unused private "testError" method.