Method is identical to its super method
Reports methods that are identical to their super methods. Such methods have the same signature as their super method and either have an identical body or only their body consists only of a call to the super method. These methods are redundant and can be removed.
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
RedundantMethodOverride- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Use the first checkbox below to run the inspection for the methods that override library methods. Checking library methods may slow down the inspection.
Use the second checkbox below to ignore methods that only delegate calls to their super methods.
Inspection options
Here you can find the description of settings available for the Method is identical to its super method inspection, and the reference of their default values.
- Check methods overriding library methods
Default value:
Selected- Ignore delegates to super methods
Default value:
Selected
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: |