how do you refactor change signature of a java met...
# intellij
d
how do you refactor change signature of a java method so that kotlin knows if it is
?
or not ? if I change
double
to
@Nullable Double
then in the kotlin code it becomes
@Nullable Double?
and then i must do a search and replace. This is for the return value but from past experience I think that happens in parameters as well
n
by default kotlin assumes java code is platform type signified as a
!
in the IDE, this will crash at runtime with a nullpointer whne trying to assing to a kotlin
Double
as for how to make this work in refactoring.. i am only aware of finding all usages of the method and adjusting the types on each callsite