mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 04:35:22 +07:00
24 lines
695 B
HTML
24 lines
695 B
HTML
<html>
|
|
<body>
|
|
Reports redundant <code>import</code> statements.
|
|
<p>Regular <code>import</code> statements are unnecessary when not using imported classes and packages in the source file.
|
|
The same applies to imported <code>static</code> fields and methods that aren't used in the source file.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
import java.util.ArrayList;
|
|
public class Example {
|
|
public static void main(String[] args) {
|
|
System.out.println("Hello World!");
|
|
}
|
|
}
|
|
</code></pre>
|
|
<p>After the quick fix is applied:
|
|
<pre><code>
|
|
public class Example {
|
|
public static void main(String[] args) {
|
|
System.out.println("Hello World!");
|
|
}
|
|
}
|
|
</code></pre>
|
|
</body>
|
|
</html> |