Adib Faramarzi
1 min readAug 19, 2018

--

This will get better as the Android SDK willl introduce more and more @Nullableand @NonNull into their codebase. The reverse of this problem can also occur, for example, in a RecyclerView adapter, you would get an automatically generated `onBindViewHolder(holder: ViewHolder?, position: Int)`, but the holder is never null here and you can safely remove the “?”.

--

--