Join Slack
Powered by
what String! mean? File(uri).length, it shows me n...
# announcements
i
Ifvwm
01/16/2021, 6:32 AM
what String! mean? File(uri).length, it shows me none of the following functions can be called with arguments supplied public constructor File(uri: URI!)
๐ 1
r
Ruckus
01/16/2021, 6:53 AM
https://kotlinlang.org/docs/reference/java-interop.html#null-safety-and-platform-types
u
์ค๋ํ
11/08/2023, 6:02 AM
When type with ! like you said
String!
, it means the type with ! is came from another platform like java or groovy. It is called a platform type.
์ค๋ํ
11/08/2023, 6:03 AM
In java, there are no not null or nullable type, so you should choose binary option this platform type as not null type or nullable type.
4
Views
Open in Slack
Previous
Next