mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
23 lines
979 B
HTML
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> |