mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IG: add description
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
Reports synchronization on a call to <b>getClass()</b>.
|
||||
If the class containing the synchronization is subclassed, the subclass will synchronize on a different class object.
|
||||
Usually the call to <b>getClass()</b> can be replaced with a class literal expression, for example <b>String.class</b>.
|
||||
An even better solution is synchronizing on a <b>private static final</b> lock object, access to which can be completely controlled.
|
||||
<!-- tooltip end -->
|
||||
<p>
|
||||
<small>New in 16.2</small>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user