mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
^KTIJ-23868 Fixed Review: https://jetbrains.team/p/ij/reviews/107981 GitOrigin-RevId: 2075b68da44cd8aaead447cf3353262f0db00588
22 lines
610 B
HTML
22 lines
610 B
HTML
<html>
|
|
<body>
|
|
<p>
|
|
Reports <code>object</code>s (<code>data object</code> including) that implement <code>java.io.Serializable</code> but don't implement
|
|
<a href="https://docs.oracle.com/en/java/javase/11/docs/specs/serialization/input.html#the-readresolve-method">readResolve</a>
|
|
</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
import java.io.Serializable
|
|
|
|
object Foo : Serializable
|
|
</code></pre>
|
|
<p>The quick fix implements <code>readResolve</code> method:</p>
|
|
<pre><code>
|
|
import java.io.Serializable
|
|
|
|
object Foo : Serializable {
|
|
private fun readResolve() = Foo
|
|
}
|
|
</code></pre>
|
|
</body>
|
|
</html> |