Inspectopedia
 
2024.3

Unnecessary 'return' statement

Warning
Code Style
Last modified: 03 December 2024

Reports return statements at the end of constructors and methods returning void. These are unnecessary and may be safely removed.

Example:

After the quick-fix is applied:

For more information, see the same inspection in Java.