mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
convert switch -> if: ignore whitespaces (IDEA-165260)
This commit is contained in:
@@ -296,6 +296,7 @@ public class ConvertSwitchToIfIntention implements IntentionAction {
|
||||
}
|
||||
|
||||
private static void appendElement(PsiElement element, @NonNls StringBuilder out, CommentTracker commentTracker) {
|
||||
if (element instanceof PsiWhiteSpace) return;
|
||||
if (element instanceof PsiBreakStatement) {
|
||||
final PsiBreakStatement breakStatement = (PsiBreakStatement)element;
|
||||
final PsiIdentifier identifier = breakStatement.getLabelIdentifier();
|
||||
|
||||
@@ -5,7 +5,6 @@ class Precedence {
|
||||
int a = 10;
|
||||
if ((a & 1) == 0) {
|
||||
System.out.println("0");
|
||||
|
||||
} else if ((a & 1) == 1) {
|
||||
System.out.println("1");
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ class X {
|
||||
//comment7
|
||||
//comment8
|
||||
if ("case1".equals(value)) {//comment2
|
||||
|
||||
} else if ("case2".equals(value)) {
|
||||
} else {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user