mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
24 lines
630 B
HTML
24 lines
630 B
HTML
<html>
|
|
<body>
|
|
Reports fields that are not guaranteed to be initialized after the object is
|
|
deserialized by the <code>readObject()</code> method.
|
|
<p>The inspection doesn't report transient fields.</p>
|
|
<p>
|
|
Note: This inspection uses a very conservative control flow algorithm, and may incorrectly report fields
|
|
as uninitialized.
|
|
</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class DataObject implements Serializable {
|
|
String s; // s is not initialized in readObject
|
|
int i;
|
|
|
|
private void readObject(ObjectInputStream stream) throws IOException {
|
|
i = stream.readInt();
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
|
|
</body>
|
|
</html> |