diesieben07
09/10/2017, 10:38 PMval y
is inferred to have type String!
, you can assign it to both String
and String?
. If you do the former, you will get a null check. If you pass y
to a Java method again, you will again, not get a null check, which is what I think is going on in your Mockito example.