mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 22:20:54 +07:00
Fixes IDEA-321061 'Complete Current Statement' doesn't handle 'yield' in switch expressions GitOrigin-RevId: 4fa96c88bebb66d90f2d22a6e1bf5dd36f38c5c7
13 lines
236 B
Java
13 lines
236 B
Java
class X {
|
|
String yieldState(Thread.State state) {
|
|
return switch (state) {
|
|
case NEW -> {
|
|
System.out.println();
|
|
yield "NEW"<caret>
|
|
}
|
|
case BLOCKED -> "BLOCKED";
|
|
default -> "some";
|
|
};
|
|
}
|
|
}
|