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

Support for Android @NonNull and @Nullable annotations #35

Open
ILikeYourHat opened this issue Aug 25, 2017 · 1 comment
Open

Support for Android @NonNull and @Nullable annotations #35

ILikeYourHat opened this issue Aug 25, 2017 · 1 comment

Comments

@ILikeYourHat
Copy link

ILikeYourHat commented Aug 25, 2017

Hi! 😄

It would be very helpful for me if this plugin could support NonNull and Nullable annotations from android.support.annotation. Logic would be pretty simple: if a field is marked as "NonNull", then the corresponding builder method parameter would be also marked as "NonNull". Same thing for "Nullable". It should generate similar code to JSR-305 NonNull annotation.

Thanks in advance! 😄

@baolongnt
Copy link

Update: Android has now migrated to use these annotations instead:
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

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

No branches or pull requests

2 participants