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

Make class-level caches for InferredJARModelsHandler instance fields. #315

Merged
merged 1 commit into from May 20, 2019

Conversation

lazaroclapp
Copy link
Collaborator

@lazaroclapp lazaroclapp commented May 20, 2019

Static mutable fields are incredibly dangerous in NullAway and should have been avoided. The original code actually triggers a crash when using a shared classloader for Error Prone.

@lazaroclapp lazaroclapp requested a review from kageiit May 20, 2019 18:43
Copy link
Collaborator

@msridhar msridhar left a comment

Choose a reason for hiding this comment

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

Would be nice to have an EP check to block these entirely

@lazaroclapp
Copy link
Collaborator Author

Internal tests seem sane, merging and cutting a release :)

@lazaroclapp lazaroclapp merged commit cd6e24f into master May 20, 2019
@lazaroclapp lazaroclapp deleted the lazaro_fix_global_caches branch May 20, 2019 22:52
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

3 participants