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

23 lines
979 B
HTML

<html>
<body>
Reports usages of automatic modules in a <code>requires</code> directive.
<p>An automatic
module is unreliable since it can depend on the types on the class path,
and its name and exported packages can change if it's
converted into an explicit module.</p>
<p>Corresponds to <code>-Xlint:requires-automatic</code> and <code>-Xlint:requires-transitive-automatic</code> Javac options.
The first option increases awareness of when automatic modules are used.
The second warns the authors of a module that they're putting the users of that module at risk by establishing implied readability to an automatic module.
<p><b>Example:</b></p>
<pre><code>
//module-info.java
module org.printer {
requires transitive drivers.corp.org; // reported in case 'drivers.corp.org' is an automatic module
}
</code></pre>
<!-- tooltip end -->
<p>
Use the <b>Highlight only transitive dependencies</b> option to warn only about transitive dependencies.
</p>
</body>
</html>