suppressed actions restored

This commit is contained in:
Alexey Kudravtsev
2013-05-08 15:24:56 +04:00
parent 0ba072034e
commit ed6cc1012e
2 changed files with 2 additions and 8 deletions
@@ -15,6 +15,7 @@
*/
package com.intellij.codeInspection;
import com.intellij.codeInsight.daemon.HighlightDisplayKey;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -23,7 +24,7 @@ public abstract class BaseJavaBatchLocalInspectionTool extends AbstractBaseJavaL
@NotNull
@Override
public SuppressQuickFix[] getBatchSuppressActions(@Nullable PsiElement element) {
return SuppressQuickFix.EMPTY_ARRAY;
return BatchSuppressManager.SERVICE.getInstance().createBatchSuppressActions(HighlightDisplayKey.find(getShortName()));
}
@Override
@@ -7,9 +7,7 @@ import com.intellij.openapi.roots.LanguageLevelProjectExtension;
import com.intellij.pom.java.LanguageLevel;
import org.jetbrains.annotations.NotNull;
public class SuppressLocalInspectionTest extends LightQuickFixTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
@@ -22,11 +20,6 @@ public class SuppressLocalInspectionTest extends LightQuickFixTestCase {
return new LocalInspectionTool[]{new LocalCanBeFinal()};
}
@Override
protected void tearDown() throws Exception {
super.tearDown();
}
public void test() throws Exception { doAllTests(); }
@Override