can complete normally: break inside switch (IDEA-178304)

break inside switch when switch is selected should not lead to abnormal completion
This commit is contained in:
Anna Kozlova
2017-09-04 12:28:22 +03:00
parent 0fb58a95a1
commit b23c6b026b
4 changed files with 26 additions and 3 deletions
@@ -0,0 +1,13 @@
import java.util.concurrent.ExecutorService;
class Test {
private void m(ExecutorService service, int i) {
service.submit(() -> {
switch (i) {
default:
break;
}
});
}
}