in your case, the kotlin code doesn't generate a w...
# intellij
k
in your case, the kotlin code doesn't generate a warning or error because it doesn't know whether
TestClass
can handle nulls. If you annotate the parameters of the java class with
@NotNull
then a warning/error will appear on the kotlin side