From f065fa47787b424699c9971f1f2f4a1f322bcdc7 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 27 Sep 2017 10:24:56 +0700 Subject: [PATCH] EmptyStatementBodyInspection: delete else fix --- .../src/com/siyeh/ig/bugs/EmptyStatementBodyInspection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/EmptyStatementBodyInspection.java b/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/EmptyStatementBodyInspection.java index 645a9bcb6476..b2aaf2aa89a0 100644 --- a/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/EmptyStatementBodyInspection.java +++ b/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/EmptyStatementBodyInspection.java @@ -151,7 +151,7 @@ public class EmptyStatementBodyInspection extends BaseInspection { if (elseToken == null) { return; } - registerError(elseToken); + registerError(elseToken, new DeleteElementFix(elseBranch)); } }