mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 11:00:04 +07:00
Java: Don't offer "Unwrap 'else' branch" intention if it might cause unreachable code (IDEA-165428)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Unwrap 'else' branch" "true"
|
||||
|
||||
class T {
|
||||
void f(boolean b) {
|
||||
if (b)
|
||||
throw new RuntimeException("When true");
|
||||
<caret>else {
|
||||
System.out.println("Otherwise");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user