Inspectopedia
 
2024.3

Parameter type prevents overriding

Warning
New
Last modified: 03 December 2024

Reports parameter types of a subclass method that have the same name as the parameter type of the corresponding super method but belong to a different package. In these cases, the subclass method cannot override the super method.

Example:

After the quick-fix is applied: