innerbuilder icon indicating copy to clipboard operation
innerbuilder copied to clipboard

Support for Android @NonNull and @Nullable annotations

Open ILikeYourHat opened this issue 7 years ago • 1 comments

Hi! :smile:

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! :smile:

ILikeYourHat avatar Aug 25 '17 09:08 ILikeYourHat

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

baolongnt avatar Apr 03 '19 14:04 baolongnt