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

Add support for annotations #77

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

dbrgn
Copy link
Contributor

@dbrgn dbrgn commented Feb 29, 2020

Annotations like @Nullable/@nonnull help with static nullability checks
while annotations like @UiThread/@workerthread help with ensuring that
certain methods are only called from the correct thread.

Annotations like @Nullable/@nonnull help with static nullability checks
while annotations like @UiThread/@workerthread help with ensuring that
certain methods are only called from the correct thread.
@rorist
Copy link
Member

rorist commented Feb 29, 2020

Oh that's nice, but it doesn't enforce that and only block at compile time ?

@dbrgn
Copy link
Contributor Author

dbrgn commented Feb 29, 2020

It's only a feature of Android Studio. It won't even block compilation, I think. But Android Studio will warn you if you call a @workerthread function from a @UiThread scope.

@rorist rorist merged commit df43352 into fixme-lausanne:master Mar 2, 2020
@dbrgn dbrgn deleted the annotations branch March 2, 2020 09:24
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.

2 participants