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

13 lines
648 B
HTML

<html>
<body>
Reports <code>import</code> statements that import single classes (as opposed to entire packages).
<p>Some coding standards prohibit such <code>import</code> statements.</p>
<p>
You can configure IntelliJ IDEA to detect and fix such statements with its <b>Optimize Imports</b> command. Go to
<a href="settings://preferences.sourceCode.Java?Use%20single%20class%20import">Settings | Editor | Code Style | Java | Imports</a>
and clear the <b>Use single class import</b> checkbox. Thus this inspection is mostly useful for
offline reporting on code bases that you don't intend to change.
</p>
<!-- tooltip end -->
</body>
</html>