Inspectopedia
 
2024.3

'instanceof' checks in 'catch' block can be replaced with specific catches

Info
New
Last modified: 03 December 2024

Reports the instanceof checks in single catch blocks that could be replaced with multiple catch blocks specific for each exception instance.