mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java inspection: avoid applying twice in the batch mode the fix for inspection "Split Try Statement with Multiple Resources" (IDEA-157727)
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ public class SplitTryWithMultipleResourcesInspection extends BaseInspection {
|
||||
private static void doFixImpl(@NotNull PsiElement element) throws IncorrectOperationException {
|
||||
final PsiTryStatement tryStatement = (PsiTryStatement)element.getParent();
|
||||
final PsiResourceList resourceList = tryStatement.getResourceList();
|
||||
if (resourceList == null) {
|
||||
if (resourceList == null || resourceList.getResourceVariablesCount() <= 1) {
|
||||
return;
|
||||
}
|
||||
final StringBuilder newTryStatementText = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user