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

DiamondOperatorForVariableDefinitionCheck: false-positives on anonymous classes #270

Closed
daniilyar opened this Issue Nov 6, 2014 · 0 comments

Comments

Projects
None yet
3 participants
@daniilyar
Member

daniilyar commented Nov 6, 2014

DiamondOperatorForVariableDefinitionCheck warns on cases like below:

private Predicate<File> inputCsvFilesFilter = new Predicate<File>() {
    @Override
    public boolean apply(File input) {
        return true;
    }
};

but this case could nod be fixed by updating it to diamond operator usage.
Please review and fix Check logic and add case above to UTs to avoid such false-positives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment