mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
25 lines
792 B
HTML
25 lines
792 B
HTML
<html>
|
|
<body>
|
|
Reports accesses of fields declared as <code>@GuardedBy</code> that are not guarded by an appropriate synchronization structure.
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
@GuardedBy("this")
|
|
void x() {
|
|
notify();
|
|
}
|
|
void y() {
|
|
x(); // unguarded method call
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>Supported <code>@GuardedBy</code> annotations are:</p>
|
|
<ul>
|
|
<li><code>net.jcip.annotations.GuardedBy</code></li>
|
|
<li><code>javax.annotation.concurrent.GuardedBy</code></li>
|
|
<li><code>org.apache.http.annotation.GuardedBy</code></li>
|
|
<li><code>com.android.annotations.concurrency.GuardedBy</code></li>
|
|
<li><code>androidx.annotation.GuardedBy</code></li>
|
|
<li><code>com.google.errorprone.annotations.concurrent.GuardedBy</code></li>
|
|
</ul>
|
|
</body>
|
|
</html> |