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

UnnecessaryCheckNotNull correctly qualifies Preconditions #1433

Conversation

carterkozak
Copy link
Contributor

Previously other imports or nested classes named Preconditions
caused the suggested fix to fail.

Previously other imports or nested classes named Preconditions
caused the suggested fix to fail.
@netdpb netdpb mentioned this pull request Jan 7, 2020
netdpb pushed a commit that referenced this pull request Jan 7, 2020
…ition we want to use.

And encourage static importing it; that is the Java practices guidance after all.

This introduces a SuggestedFixes helper to get a name to refer to methods that we want to try to static import, but fall back to qualifying if necessary.

This addresses PR #1433, though not in the same way.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=288470257
netdpb pushed a commit that referenced this pull request Jan 7, 2020
…ition we want to use.

And encourage static importing it; that is the Java practices guidance after all.

This introduces a SuggestedFixes helper to get a name to refer to methods that we want to try to static import, but fall back to qualifying if necessary.

This addresses PR #1433, though not in the same way.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=288470257
kmclarnon pushed a commit to HubSpot/error-prone that referenced this pull request Feb 19, 2020
…ition we want to use.

And encourage static importing it; that is the Java practices guidance after all.

This introduces a SuggestedFixes helper to get a name to refer to methods that we want to try to static import, but fall back to qualifying if necessary.

This addresses PR google#1433, though not in the same way.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=288470257
@cushon
Copy link
Collaborator

cushon commented May 15, 2020

Thanks for the report! This was resolved by b920acf.

@cushon cushon closed this May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants