Back to Intellij Community

ClassOnlyUsedInOnePackage

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

2025.3-rc-2381 B
Original Source

Reports classes that don't depend on any other class in their package, depend on classes from another package, and are themselves a dependency only for classes from this other package. Consider moving such classes to the package 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.