mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
16 lines
905 B
HTML
16 lines
905 B
HTML
<html>
|
|
<body>
|
|
Reports redundant <code>requires</code> directives in Java Platform Module System <code>module-info.java</code> files.
|
|
A <code>requires</code> directive is redundant when a module <code>A</code> requires a module <code>B</code>,
|
|
but the code in module <code>A</code> doesn't import any packages or classes from <code>B</code>.
|
|
Furthermore, all modules have an implicitly declared dependence on the <code>java.base</code> module,
|
|
therefore a <code>requires java.base;</code> directive is always redundant.
|
|
<p>
|
|
The quick-fix deletes the redundant <code>requires</code> directive.
|
|
If the deleted dependency re-exported modules that are actually used, the fix adds a <code>requires</code> directives for these modules.
|
|
</p>
|
|
<!-- tooltip end -->
|
|
<p>This inspection only reports if the language level of the project or module is 9 or higher.</p>
|
|
<p><small>New in 2017.1</small>
|
|
</body>
|
|
</html> |