Inspectopedia
 
2024.3

Missing return statement

Warning
Reliability
Last modified: 03 December 2024

Reports missing return statements at the end of methods with a non-void return type. The end of method should be reachable by the method's execution flow.

Example: