Back to Intellij Community

ClassNamePrefixedWithPackageName

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

2025.3-rc-2380 B
Original Source

Reports classes whose names are prefixed with their package names, ignoring differences in capitalization.

While occasionally having such names is reasonable, they are often used due to a poor naming scheme, may be redundant and annoying.

Example:

package byteCode;
  class ByteCodeAnalyzer {}

A quick-fix that renames such classes is available only in the editor.