mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +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,13 @@
|
||||
// "Unwrap 'else' branch" "true"
|
||||
|
||||
class T {
|
||||
String f(boolean a, boolean b) {
|
||||
if (a) {
|
||||
if (b) {
|
||||
return "When true";
|
||||
}
|
||||
return "Otherwise";
|
||||
}
|
||||
return "Default";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user