DiamondOperatorForVariableDefinitionCheck: false-positives on anonymous classes #270

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

Projects

None yet

3 participants

@daniilyar
Member

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.

@alexkravin alexkravin was assigned by daniilyar Nov 6, 2014
@romani romani closed this Dec 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment