How do you get a warning, if the compiler infers a platform type when calling Java code?
explicitApi
only effects Kotlin return types.
Copy code
// java:
public class SomeUtils {
public static String getString() { return "hello world"; }
}
// kotlin
val s = SomeUtils.getString() // no warning: s is String!