Search in sources :

Example 1 with JavacQuirksInspection

use of com.intellij.codeInspection.compiler.JavacQuirksInspection in project intellij-community by JetBrains.

the class LightAdvHighlightingJdk6Test method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    enableInspectionTools(new UnusedDeclarationInspection(), new UncheckedWarningLocalInspection(), new JavacQuirksInspection(), new RedundantCastInspection());
    setLanguageLevel(LanguageLevel.JDK_1_6);
    IdeaTestUtil.setTestVersion(JavaSdkVersion.JDK_1_6, getModule(), getTestRootDisposable());
}
Also used : RedundantCastInspection(com.intellij.codeInspection.redundantCast.RedundantCastInspection) UncheckedWarningLocalInspection(com.intellij.codeInspection.uncheckedWarnings.UncheckedWarningLocalInspection) JavacQuirksInspection(com.intellij.codeInspection.compiler.JavacQuirksInspection) UnusedDeclarationInspection(com.intellij.codeInspection.deadCode.UnusedDeclarationInspection)

Example 2 with JavacQuirksInspection

use of com.intellij.codeInspection.compiler.JavacQuirksInspection in project intellij-community by JetBrains.

the class LightAdvHighlightingJdk7Test method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    enableInspectionTools(new UnusedDeclarationInspection(), new UncheckedWarningLocalInspection(), new JavacQuirksInspection(), new RedundantCastInspection());
    setLanguageLevel(LanguageLevel.JDK_1_7);
    IdeaTestUtil.setTestVersion(JavaSdkVersion.JDK_1_7, getModule(), getTestRootDisposable());
}
Also used : RedundantCastInspection(com.intellij.codeInspection.redundantCast.RedundantCastInspection) UncheckedWarningLocalInspection(com.intellij.codeInspection.uncheckedWarnings.UncheckedWarningLocalInspection) JavacQuirksInspection(com.intellij.codeInspection.compiler.JavacQuirksInspection) UnusedDeclarationInspection(com.intellij.codeInspection.deadCode.UnusedDeclarationInspection)

Example 3 with JavacQuirksInspection

use of com.intellij.codeInspection.compiler.JavacQuirksInspection in project intellij-community by JetBrains.

the class LightAdvHighlightingJdk8Test method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    enableInspectionTools(new JavacQuirksInspection());
    setLanguageLevel(LanguageLevel.JDK_1_8);
    IdeaTestUtil.setTestVersion(JavaSdkVersion.JDK_1_8, getModule(), getTestRootDisposable());
}
Also used : JavacQuirksInspection(com.intellij.codeInspection.compiler.JavacQuirksInspection)

Aggregations

JavacQuirksInspection (com.intellij.codeInspection.compiler.JavacQuirksInspection)3 UnusedDeclarationInspection (com.intellij.codeInspection.deadCode.UnusedDeclarationInspection)2 RedundantCastInspection (com.intellij.codeInspection.redundantCast.RedundantCastInspection)2 UncheckedWarningLocalInspection (com.intellij.codeInspection.uncheckedWarnings.UncheckedWarningLocalInspection)2