Inspectopedia
 
2024.3

Empty 'finally' block

Warning
Last modified: 03 December 2024

Reports empty finally blocks.

Empty finally blocks usually indicate coding errors. They may also remain after code refactoring and can safely be removed.

This inspection doesn't report empty finally blocks found in JSP files.

Example:

After the quick-fix is applied: