mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +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 {
|
||||
String f(boolean b) {
|
||||
if (b)
|
||||
return "When true";
|
||||
// Before
|
||||
return "Otherwise";
|
||||
// After
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user