Serializable object must implement 'readResolve'
Reports object
s (data object
including) that implement java.io.Serializable
but don't implement readResolve
Example:
import java.io.Serializable
object Foo : Serializable
The quick fix implements readResolve
method:
import java.io.Serializable
object Foo : Serializable {
private fun readResolve() = Foo
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Kotlin, @snapshot@ |
Last modified: 13 July 2023