mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-220039: Disable the "Unwrap 'else' branch" intention action if the 'else' is not redundant
GitOrigin-RevId: 9ff561b38bce316cbcbd1e24c738b77cf6495460
This commit is contained in:
committed by
intellij-monorepo-bot
parent
48beacdfa3
commit
d01484e002
+1
-1
@@ -77,7 +77,7 @@ public class UnwrapElseBranchAction extends PsiElementBaseIntentionAction {
|
||||
setText(JavaBundle.message("intention.unwrap.else.branch.changes.semantics"));
|
||||
}
|
||||
else {
|
||||
setText(JavaBundle.message("intention.unwrap.else.branch"));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Unwrap 'else' branch" "true"
|
||||
// "Unwrap 'else' branch" "false"
|
||||
|
||||
class T {
|
||||
void f(boolean b) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Unwrap 'else' branch" "true"
|
||||
// "Unwrap 'else' branch" "false"
|
||||
|
||||
class T {
|
||||
String f(boolean a, boolean b) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Unwrap 'else' branch" "true"
|
||||
// "Unwrap 'else' branch" "false"
|
||||
|
||||
class T {
|
||||
String f(boolean a, boolean b) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Unwrap 'else' branch" "true"
|
||||
// "Unwrap 'else' branch" "false"
|
||||
|
||||
class T {
|
||||
String f(boolean a, boolean b) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Unwrap 'else' branch" "true"
|
||||
// "Unwrap 'else' branch" "false"
|
||||
|
||||
class T {
|
||||
String f(boolean b) {
|
||||
|
||||
Reference in New Issue
Block a user