mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
21 lines
600 B
HTML
21 lines
600 B
HTML
<html>
|
|
<body>
|
|
Reports <code>Serializable</code> classes whose <code>serialPersistentFields</code> field
|
|
is not declared as <code>private static final ObjectStreamField[]</code>.
|
|
<p>
|
|
If a <code>serialPersistentFields</code> field is not declared with those modifiers,
|
|
the serialization behavior will be as if the field was not declared at all.
|
|
</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class List implements Serializable {
|
|
private List next;
|
|
|
|
ObjectStreamField[] serialPersistentFields = {new ObjectStreamField("next", List.class)};
|
|
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
|
|
</body>
|
|
</html> |