mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
23 lines
772 B
HTML
23 lines
772 B
HTML
<html>
|
|
<body>
|
|
Reports instance variables that are read before initialization.
|
|
<p>The inspection ignores equality checks with <code>null</code>.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class Foo {
|
|
int bar;
|
|
|
|
Foo() {
|
|
System.out.println(bar);
|
|
}
|
|
}
|
|
</code></pre>
|
|
<p>Note that this inspection uses a very conservative dataflow algorithm and may incorrectly report instance variables as uninitialized. Variables
|
|
reported as initialized will always be initialized.
|
|
<!-- tooltip end -->
|
|
<p>Use the <b>Ignore if annotated by</b> option to specify special annotations. The inspection will ignore fields
|
|
annotated with one of these annotations.</p>
|
|
<p>Use the <b>Ignore primitive fields</b> option to ignore uninitialized primitive fields.</p>
|
|
</body>
|
|
</html>
|