Files
openide/java/java-impl/resources/inspectionDescriptions/ThisEscapedInConstructor.html
2025-02-05 04:43:28 +00:00

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>