Inspectopedia 2024.3 Help

Class structure

'private' method declared 'final'   New in this release

Reports methods that are marked with both final and private keywords.

'public' constructor can be replaced with factory method   New in this release

Reports public constructors.

'static' method declared 'final'   New in this release

Reports static methods that are marked as final.

'static', non-'final' field   New in this release

Reports non-final static fields.

Abstract 'class' may be 'interface'   New in this release

Reports abstract classes that can be converted to interfaces.

Anonymous class can be replaced with inner class   New in this release

Reports anonymous classes.

Class is closed to inheritance   New in this release

Reports classes that are declared final.

Class may extend adapter instead of implementing listener   New in this release

Reports classes implementing listeners instead of extending corresponding adapters.

Class name differs from file name   New in this release

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

Class with only 'private' constructors should be declared 'final'   New in this release

Reports classes with only private constructors.

Constant declared in 'abstract' class   New in this release

Reports constants (public static final fields) declared in abstract classes.

Constant declared in interface   New in this release

Reports constants (public static final fields) declared in interfaces.

Empty class   New in this release

Reports empty classes and empty Java files.

Field can be local   New in this release

Reports redundant class fields that can be replaced with local variables.

Inner class of interface   New in this release

Reports inner classes in interface classes.

Interface may be annotated as '@FunctionalInterface'   New in this release

Reports interfaces that can be annotated with @FunctionalInterface.

Local class   New in this release

Reports local classes.

Marker interface   New in this release

Reports marker interfaces without any methods or fields.

Method can't be overridden   New in this release

Reports methods that are declared final.

Method returns per-class constant   New in this release

Reports methods that only return a constant, which may differ for various inheritors.

Multiple top level classes in single file   New in this release

Reports multiple top-level classes in a single Java file.

No-op method in 'abstract' class   New in this release

Reports no-op (for "no operation") methods in abstract classes.

Non-'static' initializer   New in this release

Reports non-static initializers in classes.

Non-final field in 'enum'   New in this release

Reports non-final fields in enumeration types.

Singleton   New in this release

Reports singleton classes.

Utility class   New in this release

Reports utility classes.

Utility class can be 'enum'   New in this release

Reports utility classes that can be converted to enums.

Utility class is not 'final'   New in this release

Reports utility classes that aren't final or abstract.

Utility class with 'public' constructor   New in this release

Reports utility classes with public constructors.

Utility class without 'private' constructor   New in this release

Reports utility classes without private constructors.

Value passed as parameter never read   New in this release

Reports redundant method parameters that can be replaced with local variables.

Last modified: 11 September 2024