Chetan Sachdeva
06/30/2023, 6:33 PM?
to them. Is there a way we can avoid this? Does @ParametersAreNonnullByDefault
work?Adam S
07/01/2023, 10:39 AM@ParametersAreNonnullByDefault
isn’t listed as a supported one though
https://github.com/JetBrains/kotlin/blob/v1.8.22/core/compiler.common.jvm/src/org/jetbrains/kotlin/load/java/JvmAnnotationNames.ktChetan Sachdeva
07/01/2023, 10:43 AMclass TestChild extends TestParent<Object> {
public TestChild(String a) {
super(a);
}
}
J2K converter outputs:
internal class TestChild(a: String?) : TestParent<Any?>(a)
which is incorrect.Adam S
07/01/2023, 10:44 AMChetan Sachdeva
07/01/2023, 10:45 AMChetan Sachdeva
07/01/2023, 10:46 AMinternal class TestChild(a: String) : TestParent<Any>(a)
Adam S
07/01/2023, 10:47 AMAdam S
07/01/2023, 10:47 AMAdam S
07/01/2023, 10:49 AMChetan Sachdeva
07/01/2023, 10:53 AMnull
. NullAway is similar to the type-based nullability checking in the Kotlin and Swift languages, and the Checker Framework and Eradicate null checkers for Java. sourceChetan Sachdeva
07/01/2023, 10:54 AM@NonNull
. Strangely the “old” J2K converter works as per our requirement but the “new” one takes a safer route.hfhbd
07/01/2023, 12:02 PMChetan Sachdeva
07/01/2023, 12:18 PMsettings
is not being used in NewJavaToKotlinConverter.kthfhbd
07/01/2023, 5:06 PMAnton Mefodichev
07/06/2023, 2:23 PM