IDEA-172200 Decompiler switch-on-enum multiple switches in same class generates wrong cases for all but the first switch-on-enum
This commit is contained in:
@@ -19,4 +19,30 @@ public class TestSwitchOnEnum {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static class Example {
|
||||
|
||||
enum A { A1, A2}
|
||||
|
||||
enum B { B1, B2}
|
||||
|
||||
void test(A a, B b){
|
||||
switch (a){
|
||||
case A1:
|
||||
System.out.println("A1");
|
||||
break;
|
||||
case A2:
|
||||
System.out.println("A2");
|
||||
break;
|
||||
}
|
||||
switch (b){
|
||||
case B1:
|
||||
System.out.println("B1");
|
||||
break;
|
||||
case B2:
|
||||
System.out.println("B2");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user