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

Add matchers for incompatible type matchers #1832

Merged
merged 1 commit into from Dec 7, 2019

Commits on Nov 27, 2019

  1. Add matchers for incompatible type matchers

    We discovered that users run into issues with using the wrong Mockito
    matcher for arguments. Examples include `any(Integer.class)` instead of
    `anyInt()` and `anyInt()` instead of `anyFloat()`. Users then run into
    cryptic run-time errors that are difficult to understand.
    
    These ErrorProne checkers make these a compile warning, to warn the user
    before hand. They also provide the appropriate fixes that can be
    directly applied.
    TimvdLippe committed Nov 27, 2019
    Copy the full SHA
    4b3cedf View commit details
    Browse the repository at this point in the history