Skip to content

Commit 92f9a94

Browse files
authored
Enable the switch recipes as part of the Java 21 migration (#878)
* Enable the switch recipes as part of the Java 21 migration * Comment out IfElseIfConstructToSwitch migration Comment out the IfElseIfConstructToSwitch migration due to issues with non JDK types.
1 parent 209211e commit 92f9a94

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/resources/META-INF/rewrite/java-version-21.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ recipeList:
4242
- org.openrewrite.java.migrate.lang.SwitchCaseAssignmentsToSwitchExpression
4343
- org.openrewrite.java.migrate.lang.SwitchCaseReturnsToSwitchExpression
4444
- org.openrewrite.java.migrate.lang.SwitchExpressionYieldToArrow
45-
# TODO Reevaluate when these recipes are stable enough to be included by default
46-
#- org.openrewrite.java.migrate.lang.IfElseIfConstructToSwitch
47-
#- org.openrewrite.java.migrate.SwitchPatternMatching
48-
#- org.openrewrite.java.migrate.lang.NullCheckAsSwitchCase
45+
#- org.openrewrite.java.migrate.lang.IfElseIfConstructToSwitch # FIXME `casecase` seen near non JDK types
46+
- org.openrewrite.java.migrate.SwitchPatternMatching
47+
- org.openrewrite.java.migrate.lang.NullCheckAsSwitchCase
4948

5049
---
5150
type: specs.openrewrite.org/v1beta/recipe

0 commit comments

Comments
 (0)