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

Fix error on checking the initTree2PrevFieldInit cache. #252

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

lazaroclapp
Copy link
Collaborator

We were saving ASTHelpers.getSymbol(enclosingClass) (A ClassSymbol) but testing for enclosingClass itself (ClassTree). This didn't cause a functional problem, but it means the cache was never being hit.

@lazaroclapp
Copy link
Collaborator Author

Found it running this tool: https://lgtm.com/projects/g/uber/NullAway/alerts/?mode=list&severity=error

It also reports a few issues with closing files in JarInfer code, but it's less obvious to me those are real issues, since it complains whenever streams escape the current method (they might be actual leaks, but it's not as clear cut as this case and I haven't taken any in-depth look yet).

@lazaroclapp lazaroclapp merged commit d0bddbc into master Nov 6, 2018
@lazaroclapp lazaroclapp deleted the lazaro_fix_issues branch November 6, 2018 19:29
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