Inspectopedia
 
2024.3

Type parameter extends 'final' class

Warning
New
Last modified: 03 December 2024

Reports type parameters declared to extend a final class.

Suggests replacing the type parameter with the type of the specified final class since final classes cannot be extended.

Example:

After the quick-fix is applied:

This inspection depends on the Java feature 'Generics', which is available since Java 5.