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

16 lines
783 B
HTML

<html>
<body>
Reports any <code>import</code> statements that cover entire packages ('* imports').
<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>,
make sure that the <b>Use single class import</b> option is enabled, and specify values in the
<b>Class count to use import with '*'</b> and <b>Names count to use static import with '*'</b> fields.
Thus this inspection is mostly useful for offline reporting on code bases that you don't
intend to change.
</p>
<!-- tooltip end -->
</body>
</html>