False positive with "super" in StaticMethodCandidateCheck #393

Closed
cypai opened this Issue Nov 10, 2015 · 0 comments

Projects

None yet

3 participants

@cypai
Contributor
cypai commented Nov 10, 2015

Getting false positive on bar in the following code:

public class Test {
    protected Object foo(Object[] arguments) {
        return this;
    }
}

public class TestChild extends Test {
    @Override
    protected Object foo(Object[] arguments) {
        return this;
    }

    private TestChild bar() {
        return (TestChild) super.foo(null);
    }
}
@romani romani changed the title from False positive in StaticMethodCandidateCheck to False positive with "super" in StaticMethodCandidateCheck Nov 10, 2015
@Vladlis Vladlis was assigned by romani Nov 13, 2015
@Vladlis Vladlis added a commit to Vladlis/sevntu.checkstyle that referenced this issue Nov 15, 2015
@Vladlis Vladlis Issue #393: Fix false-positive on methods called from 'super' d5d81bf
@romani romani closed this Nov 16, 2015
@romani romani added this to the 1.17.1 milestone Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment