mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-22 00:22:16 +07:00
37 lines
965 B
Java
37 lines
965 B
Java
|
|
package com.intellij.codeInsight.daemon.quickFix;
|
|
|
|
import com.intellij.codeInspection.LocalInspectionTool;
|
|
import com.intellij.codeInspection.localCanBeFinal.LocalCanBeFinal;
|
|
import com.intellij.openapi.roots.LanguageLevelProjectExtension;
|
|
import com.intellij.pom.java.LanguageLevel;
|
|
|
|
|
|
public class SuppressLocalInspectionTest extends LightQuickFixTestCase {
|
|
|
|
@Override
|
|
protected void setUp() throws Exception {
|
|
super.setUp();
|
|
LanguageLevelProjectExtension.getInstance(getProject()).setLanguageLevel(LanguageLevel.JDK_1_3);
|
|
}
|
|
|
|
@Override
|
|
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
|
return new LocalInspectionTool[]{new LocalCanBeFinal()};
|
|
}
|
|
|
|
@Override
|
|
protected void tearDown() throws Exception {
|
|
super.tearDown();
|
|
}
|
|
|
|
public void test() throws Exception { doAllTests(); }
|
|
|
|
@Override
|
|
protected String getBasePath() {
|
|
return "/codeInsight/daemonCodeAnalyzer/quickFix/suppressLocalInspection";
|
|
}
|
|
|
|
}
|
|
|