Skip to content
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
Closed

False positive with "super" in StaticMethodCandidateCheck #393

cypai opened this issue Nov 10, 2015 · 0 comments
Assignees
Milestone

Comments

@cypai
Copy link
Contributor

@cypai 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 False positive in StaticMethodCandidateCheck 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.