Java
Module exports/opens package to itself
Warning
New
Last modified: 03 December 2024 Reports packages that are exported to, or opened in the same Java 9 module in which they are defined. The quick-fix removes such directives from module-info.java
.
Example:
module com.mycomp {
exports com.mycomp.main to com.mycomp;
}
After the quick-fix is applied:
module main {
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
Java9ModuleExportsPackageToItself
This inspection depends on the Java feature 'Modules', which is available since Java 9.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?