mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 14:54:36 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
17 lines
504 B
HTML
17 lines
504 B
HTML
<html>
|
|
<body>
|
|
Reports possible escapes of <code>this</code> during the object initialization. The escapes occur when <code>this</code> is used as a method argument
|
|
or an object of assignment in a constructor or initializer. Such escapes may result in subtle bugs, as the object is now available in the
|
|
context where it is not guaranteed to be initialized.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class Foo {
|
|
{
|
|
System.out.println(this);
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html>
|