False Positive: UnusedPrivateMethod overloading with varargs
A source code analyzer
Brought to you by:
adangel,
juansotuyo
PMD flags a method being used, but doesn't flag the method not being used, but is using varargs as a parameter if both have the same name.
private String s; public Foo() { s = "Foobar"; } //This method isn't flagged private void bar(int... n) { } //This method is flagged private void bar(String s) { } public void dummyMethod() { bar(s); }
Will be fixed with the next release.