Skip to content

Treat android.support.annotation.MainThread as an alias for UIEffect - #2113

Merged
mernst merged 1 commit into
typetools:masterfrom
lazaroclapp:lazaro_main_thread_annot
Aug 14, 2018
Merged

mernst merged 1 commit into
typetools:masterfrom
lazaroclapp:lazaro_main_thread_annot

Conversation

@lazaroclapp

Copy link
Copy Markdown
Contributor

This makes the annotation @MainThread imply @UIEffect for the guieffect checker. This is expected by the Rx Thread/Effect Checker at Uber and getting this plus #1977 landed would allow us to use the main-line Checker Framework as our base again.

@lazaroclapp

Copy link
Copy Markdown
Contributor Author

We also have a small performance optimization we could upstream, a change to stub-parser warnings, and we internally change a few annotations from RUNTIME to CLASS retention. I'd be happy to submit PRs for those as well, which would allow us to deprecate our internal fork entirely, but the two PRs already up are enough for us to base the open-source version of our checker on the normal Checker Framework releases.

@mernst mernst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would be inclined to inline (rather than pre-computing) to avoid unnecessary String computation, but it's consistent with the way the class is already written.

@mernst
mernst merged commit a7abd58 into typetools:master Aug 14, 2018
@mernst

mernst commented Aug 14, 2018

Copy link
Copy Markdown
Member

Thanks for the contribution.
Feel free to submit the other changes (as separate pull requests). We would be happy to have the enhancements, and it will be good to let you deprecate your fork.

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.

3 participants