Back to Intellij Community

Switch Default Branch.Java

java/java-impl/resources/fileTemplates/code/Switch Default Branch.java.html

2025.3-rc-2440 B
Original Source

| Generates the default branch for the switch expression or statement used by quick-fix actions like Insert 'default' branch.
This built-in template is editable. For example, you can change the thrown exception or call a logging framework instead. |

| Predefined variables take the following values: | | ${EXPRESSION} | | Switch selector expression text | | ${EXPRESSION_TYPE} | | Type of the switch selector expression |