Back to Intellij Community

ClassOnlyUsedInOneModule

java/java-impl/resources/inspectionDescriptions/ClassOnlyUsedInOneModule.html

2025.3-rc-2373 B
Original Source

Reports classes that:

  • do not depend on any other class in their module
  • depend on classes from a different module
  • are a dependency only for classes from this other module

Such classes could be moved into the module on which they depend.

Available only from Code | Inspect Code or Code | Analyze Code | Run Inspection by Name and isn't reported in the editor.