mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
Java: Fixed false positive "unreachable statement" in the control flow analysis (IDEA-164442)
This commit is contained in:
+15
@@ -488,4 +488,19 @@ class ManyExitsFromTry {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class BreakFromCatchInPresenceOfFinally {
|
||||
String f() {
|
||||
while (true) {
|
||||
try {
|
||||
return "try";
|
||||
}
|
||||
catch (Exception e) {
|
||||
break;
|
||||
}
|
||||
finally {}
|
||||
}
|
||||
return "end"; // reachable
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user