sockeqwe / ParcelablePlease

Annotation Processor for generating Parcelable code
http://hannesdorfmann.com/android/ParcelablePlease
Apache License 2.0
259 stars 21 forks source link

Support for nullables #23

Open danielgindi opened 8 years ago

danielgindi commented 8 years ago

If it's a Bool (vs. bool), then first a extra byte of != null should be emitted, and then if it's not null, emit the byte representing the value. Same goes for a String - emit a byte, and if not null emit the string. And for any other type...

Thanks :-)

sockeqwe commented 8 years ago

I might be wrong, but null on objects is already handled by the framework. So null for String should work, doesn't it?

Regarding wrappers like Bool , Double, Integer and so on, yes, null support is missing for them.