mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
18 lines
486 B
HTML
18 lines
486 B
HTML
<html>
|
|
<body>
|
|
Reports <code>Serializable</code> classes whose <code>serialVersionUID</code> field
|
|
is not declared <code>private static final long</code>.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class SampleClass implements Serializable {
|
|
private long serialVersionUID = 1; // field of a Serializable class is not declared 'private static final long'
|
|
|
|
public SampleClass() {
|
|
System.out.println(serialVersionUID);
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
|
|
</body>
|
|
</html> |