Module exports/opens package to itself
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 {
}
This inspection only reports if the language level of the project or module is 9 or higher.
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023