Files
Tagir Valeev 4b9af8fc7b [java-intentions] ConvertSwitchToIfIntention: avoid duplicating comments when extracting side effect
GitOrigin-RevId: a76e34111f7a733071d2397e0a9c0a0a4d51d175
2023-03-20 17:26:15 +00:00

9 lines
202 B
Java

// "Unwrap 'switch'" "true-preview"
class X {
void test(int i) {
int x;
<caret>switch ("1" + (x= ((--i/*text*/) + "1" + (++i) + "1"))) {
default -> System.out.println("1");
};
}
}