https://kotlinlang.org logo
n

nhaarman

01/04/2017, 7:28 PM
Is it possible to mark parameters in java libraries as non nullable? For example for RxJava, I'd like the compiler to fail if I try to pass
null
to an
onNext
call. I can annotate the method in Intellij with
null -> fail
, but that doesn't seem to do anything