Inspectopedia
 
2024.3

Class name differs from file name

Warning
New
Last modified: 03 December 2024

Reports top-level class names that don't match the name of a file containing them.

While the Java specification allows for naming non-public classes this way, files with unmatched names may be confusing and decrease usefulness of various software tools.