New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive with "super" in StaticMethodCandidateCheck #393

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

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 added a commit to Vladlis/sevntu.checkstyle that referenced this issue Nov 15, 2015

@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