https://kotlinlang.org logo
a

andrewoma

01/18/2016, 12:03 AM
Well, I think you're out of luck, short of lobbying for Java libraries to use
@Nullable
and friends. For collections, you should be able to filter to safely remove nulls (stripping the platform). Guess you'd better put a null check on the collection itself too. 😉