kenkyee
04/12/2017, 5:10 PMkirillrakhman
04/12/2017, 5:16 PMval parcelList : ArrayList<Boolean?> = ParcelableUtils.createBooleanArrayList(parcel)
all in all, this is a long standing discussion. during development kotlin used to infer all java declarations as nullable by default. this caused so much pain (null checks, ?., !! everywhere) that the team decided to rvert this and introduced platform types ArrayList<Boolean!>! which means "I don't know if this is nullable or not, you decide". like everything in language design, it's a trade-off.kenkyee
04/12/2017, 5:20 PM