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

Remove the recommendation to import ArgumentMatchers methods using Mockito #2494

Merged
merged 1 commit into from Nov 30, 2021

Conversation

cushon
Copy link
Contributor

@cushon cushon commented Nov 30, 2021

The change removes the recommendation in javadoc to import methods in ArgumentMatchers by their non-canonical name, e.g. using import static org.mockito.ArgumentMatchers.any; to import org.mockito.ArgumentMatchers.any may be clearer than import org.mockito.Mockito.any;.

There's some related discussion in http://errorprone.info/bugpattern/NonCanonicalStaticImport

Copy link
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants