Files
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

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>