mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +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,14 @@
|
||||
// "Unwrap 'else' branch (changes semantics)" "false"
|
||||
|
||||
class T {
|
||||
void m(boolean b) {
|
||||
if (b) {
|
||||
System.out.println(1);
|
||||
}
|
||||
<caret>else {
|
||||
System.out.println(2);
|
||||
return;
|
||||
}
|
||||
System.out.println(3);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user