mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
preserve comments: negated if else
This commit is contained in:
+1
-1
@@ -113,7 +113,7 @@ public class NegatedIfElseInspection extends BaseInspection {
|
||||
}
|
||||
}
|
||||
@NonNls final String newStatement = "if(" + negatedCondition + ')' + elseText + " else " + tracker.markUnchanged(thenBranch).getText();
|
||||
PsiReplacementUtil.replaceStatement(ifStatement, newStatement);
|
||||
PsiReplacementUtil.replaceStatement(ifStatement, newStatement, tracker);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user