mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java: Better handling of unreachable code (IDEA-172642)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class WithCondition {
|
||||
void testForEach() {
|
||||
return;
|
||||
<error descr="Unreachable statement">for</error> (int i: this.array()) {
|
||||
System.out.println("Never");
|
||||
}
|
||||
}
|
||||
|
||||
int[] array() { return new int[0]; }
|
||||
}
|
||||
Reference in New Issue
Block a user