Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newLambda/VoidValueCompatibilityWithBreakInSwitch.java
Anna Kozlova b23c6b026b can complete normally: break inside switch (IDEA-178304)
break inside switch when switch is selected should not lead to abnormal completion
2017-09-04 12:28:22 +03:00

13 lines
270 B
Java

import java.util.concurrent.ExecutorService;
class Test {
private void m(ExecutorService service, int i) {
service.submit(() -> {
switch (i) {
default:
break;
}
});
}
}