mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 14:37:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
29 lines
611 B
HTML
29 lines
611 B
HTML
<html>
|
|
<body>
|
|
Reports usage of statically imported members qualified with
|
|
their containing class name.
|
|
<p>Such qualification is unnecessary and can be removed
|
|
because statically imported members can be accessed directly by member name.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
import static foo.Test.WIDTH;
|
|
|
|
class Bar {
|
|
void bar() {
|
|
System.out.println(Test.WIDTH);
|
|
}
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
import static foo.Test.WIDTH;
|
|
|
|
class Bar {
|
|
void bar() {
|
|
System.out.println(WIDTH);
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |