javaClass.classLoader
in registerSerializersCore
causes a compiler warning
#492
Labels
javaClass.classLoader
in registerSerializersCore
causes a compiler warning
#492
Every generated Kotlin class contains this snippet:
javaClass.classLoader
causes a Kotlin compiler warning:Let's either replace it with
val classLoader = Companion::class.java.classLoader
, or add@Suppress("JAVA_CLASS_ON_COMPANION")
to generated files.Currently, this issue blocks compiling projects with generated files if we have enabled warnings-as-errors in Kotlin.
The text was updated successfully, but these errors were encountered: