use of com.intellij.codeInspection.deadCode.UnusedDeclarationInspection in project intellij-community by JetBrains.
the class LightUnusedHighlightingFixtureTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myFixture.enableInspections(new UnusedDeclarationInspection(true));
PlatformTestUtil.registerExtension(ImplicitUsageProvider.EP_NAME, new ImplicitUsageProvider() {
@Override
public boolean isImplicitUsage(PsiElement element) {
return isImplicitWrite(element);
}
@Override
public boolean isImplicitRead(PsiElement element) {
return false;
}
@Override
public boolean isImplicitWrite(PsiElement element) {
return element instanceof PsiField && "implicitWrite".equals(((PsiNamedElement) element).getName());
}
}, getTestRootDisposable());
}
use of com.intellij.codeInspection.deadCode.UnusedDeclarationInspection in project intellij-community by JetBrains.
the class SuppressWarningsTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
enableInspectionTool(new UnusedDeclarationInspection());
}
use of com.intellij.codeInspection.deadCode.UnusedDeclarationInspection in project intellij-community by JetBrains.
the class GenericsHighlightingTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
enableInspectionTool(new UnusedDeclarationInspection());
}
use of com.intellij.codeInspection.deadCode.UnusedDeclarationInspection in project intellij-community by JetBrains.
the class LightAdvHighlightingTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myUnusedDeclarationInspection = new UnusedDeclarationInspection(isUnusedInspectionRequired());
enableInspectionTool(myUnusedDeclarationInspection);
setLanguageLevel(LanguageLevel.JDK_1_4);
}
use of com.intellij.codeInspection.deadCode.UnusedDeclarationInspection in project intellij-community by JetBrains.
the class FunctionalExpressionIncompleteHighlightingTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
enableInspectionTool(new UnusedDeclarationInspection());
}
Aggregations