Add @JvmStatic to Pair.kt to improve interoperability with other JVM languages
Calling "static" methods in Kotlin companion objects from Java requires the verbose Clazz.Companion.fooMethod()
. In addition, Groovy seems to have problems calling such methods at all.
This can easily be solved by adding @JvmStatic
annotations to companion object methods that are meant to be called from "not-Kotlin" (which internally generates additional static methods on Clazz
).
Edited by Winfried Gerlach