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

BadImport: Add newInstance to BAD_STATIC_IDENTIFIERS #58

Closed
wants to merge 1 commit into from

Conversation

rickie
Copy link
Member

@rickie rickie commented Jan 6, 2023

We now almost have our own version of this check as well. Do we still want to upstream this one? I think it would still be a nice improvement.

Copy link
Member

@Stephan202 Stephan202 left a comment

Choose a reason for hiding this comment

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

Rebased and added a commit. Suggested commit message:

BadImport: flag static import of `newInstance` methods

Agree that it makes sense to open this PR upstream.

"",
"class Test {",
" private final CompilationTestHelper compilationTestHelper =",
" // BUG: Diagnostic contains:",
Copy link
Member

@Stephan202 Stephan202 Jan 6, 2023

Choose a reason for hiding this comment

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

Suggested change
" // BUG: Diagnostic contains:",
" // BUG: Diagnostic contains: CompilationTestHelper.newInstance",

@rickie
Copy link
Member Author

rickie commented Jan 8, 2023

Thanks for the suggestion! Will squash the changes and open a PR!

@rickie rickie force-pushed the rossendrijver/badimport-newinstance branch from 26755e1 to 40f116b Compare January 8, 2023 11:13
@rickie
Copy link
Member Author

rickie commented Jan 8, 2023

Filed google#3703.

@rickie rickie closed this May 11, 2023
@rickie
Copy link
Member Author

rickie commented May 11, 2023

Fixed in: google#3703.

@Stephan202 Stephan202 deleted the rossendrijver/badimport-newinstance branch June 8, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants