Reports a package that is exported to or opened in the same Java 9 module in which it is already 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.