mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
26 lines
1009 B
HTML
26 lines
1009 B
HTML
<html>
|
|
<body>
|
|
Reports issues with <code>AtomicLongFieldUpdater</code>,
|
|
<code>AtomicIntegerFieldUpdater</code>, or <code>AtomicReferenceFieldUpdater</code> fields (the <code>java.util.concurrent.atomic</code> package).
|
|
<p>The reported issues are identical to the runtime problems that can happen with atomic field updaters:
|
|
specified field not found, specified field not accessible, specified field has a wrong type, and so on.</p>
|
|
<p><b>Examples:</b></p>
|
|
<ul>
|
|
<li><pre><code>
|
|
class A {
|
|
private static volatile int value = 0;
|
|
private static final AtomicIntegerFieldUpdater updater =
|
|
AtomicIntegerFieldUpdater.newUpdater((A.class), "value"); // warning: Field 'value' has 'static' modifier
|
|
}
|
|
</code></pre></li>
|
|
<li><pre><code>
|
|
class B {
|
|
private static final AtomicIntegerFieldUpdater updater =
|
|
AtomicIntegerFieldUpdater.newUpdater(B.class, "value"); // warning: No field named 'value' found in class 'B'
|
|
}
|
|
</code></pre></li>
|
|
</ul>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
</body>
|
|
</html> |