Inspectopedia
 
2024.3

Enhanced 'switch'

Info
New
Last modified: 03 December 2024

Reports enhanced switch statements and expressions. Suggests replacing them with regular switch statements.

Example:

After the quick-fix is applied:

Enhanced switch appeared in Java 14. This inspection can help to downgrade for backward compatibility with earlier Java versions.

New in 2019.1