I’m not sure if this is the right place to report bugs, but here it is.
There is a Java class contained in a package annotated with
@org.springframework.lang.NonNullApi. This class overrides
equals() method. If we enable
-Xjsr305=strict in Kotlin, suddenly
== operator stops working for this class.
Apparently in such case Kotlin infers method with signature
equals(o: Any), where
== operator requires
equals(o: Any?) to be present.
A workaround for this issue is to explicitly use equals method instead of
edit — issue verified on Kotlin version 1.3.60 and 1.3.61.