@@ -4830,9 +4830,9 @@ examples:
48304830 public class Test {
48314831
48324832 public void testJakarta() {
4833- MethodExpression methodBinding = null;
4834- ELResolver propertyResolver = null;
4835- ValueExpression valueBinding = null;
4833+ MethodExpression methodExpression = null;
4834+ ELResolver eLResolver = null;
4835+ ValueExpression valueExpression = null;
48364836 }
48374837 }
48384838 language: java
@@ -6056,6 +6056,57 @@ examples:
60566056 language: java
60576057 ---
60586058type : specs.openrewrite.org/v1beta/example
6059+ recipeName : org.openrewrite.java.migrate.lang.SwitchCaseEnumGuardToLabel
6060+ examples :
6061+ - description : ' '
6062+ sources :
6063+ - before : |
6064+ import suits.Suit;
6065+ class Test {
6066+ void score(Object obj) {
6067+ switch (obj) {
6068+ case null -> System.out.println("You did not enter the test yet");
6069+ case Suit s when s == Suit.CLUBS -> System.out.println("Clubs");
6070+ case Suit s when s.equals(Suit.DIAMONDS) -> System.out.println("Diamonds");
6071+ case Suit s when Suit.HEARTS.equals(s) -> {
6072+ System.out.println("Hearts");
6073+ }
6074+ case Suit s when Suit.SPADES == s -> System.out.println("Spades");
6075+ case Suit s when Suit.JOKER == s -> System.out.println(s);
6076+ case Integer i -> System.out.println("Sorry?");
6077+ case String s -> System.out.println("Sorry?");
6078+ default -> System.out.println("Sorry?");
6079+ }
6080+ }
6081+ }
6082+ after: |
6083+ import suits.Suit;
6084+ class Test {
6085+ void score(Object obj) {
6086+ switch (obj) {
6087+ case null -> System.out.println("You did not enter the test yet");
6088+ case Suit.CLUBS -> System.out.println("Clubs");
6089+ case Suit.DIAMONDS -> System.out.println("Diamonds");
6090+ case Suit.HEARTS -> {
6091+ System.out.println("Hearts");
6092+ }
6093+ case Suit.SPADES -> System.out.println("Spades");
6094+ case Suit.JOKER -> System.out.println(Suit.JOKER);
6095+ case Integer i -> System.out.println("Sorry?");
6096+ case String s -> System.out.println("Sorry?");
6097+ default -> System.out.println("Sorry?");
6098+ }
6099+ }
6100+ }
6101+ language: java
6102+ - before : |
6103+ package suits;
6104+ public enum Suit {
6105+ CLUBS, DIAMONDS, HEARTS, SPADES, JOKER, SCORECARD
6106+ }
6107+ language: java
6108+ ---
6109+ type : specs.openrewrite.org/v1beta/example
60596110recipeName : org.openrewrite.java.migrate.lang.ThreadStopUnsupported
60606111examples :
60616112- description : ' '
0 commit comments