https://kotlinlang.org logo
#announcements
Title
# announcements
c

Cody Mikol

04/06/2021, 8:12 PM
Is there some way to make kotlin assume that any values coming from a java method or class are nullable?
c

Chris Ruddell

04/06/2021, 8:12 PM
annotate it with
@Nullable
🙏 1
n

nanodeath

04/06/2021, 8:15 PM
I think people have asked in the channel before how to essentially replace all platform types (
!
) with nullable types (
?
), and IIRC that's not actually possible
e

ephemient

04/06/2021, 8:45 PM
Detekt + type resolution can find all those cases
2 Views