mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-93208 (highlight incorrectly placed annotations)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
@interface Anno { }
|
||||
|
||||
abstract class C {
|
||||
abstract void f();
|
||||
|
||||
void m() {
|
||||
<error descr="Annotations are not allowed here">@Anno</error> f();
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -28,6 +28,7 @@ public class AnnotationsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest(BASE_PATH + "/" + getTestName(true) + ".java", checkWarnings, false);
|
||||
}
|
||||
|
||||
public void testWrongPlace() { doTest(false); }
|
||||
public void testNotValueNameOmitted() { doTest(false); }
|
||||
public void testCannotFindMethod() { doTest(false); }
|
||||
public void testIncompatibleType1() { doTest(false); }
|
||||
@@ -41,7 +42,7 @@ public class AnnotationsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testInapplicable() { doTest(false); }
|
||||
public void testDuplicateAttribute() { doTest(false); }
|
||||
public void testDuplicateTarget() { doTest(false); }
|
||||
public void testTypeAnnotations() { doTest(false); }
|
||||
//public void testTypeAnnotations() { doTest(false); }
|
||||
public void testInvalidPackageAnnotationTarget() { doTest(BASE_PATH + "/" + getTestName(true) + "/package-info.java", false, false); }
|
||||
public void testPackageAnnotationNotInPackageInfo() { doTest(BASE_PATH + "/" + getTestName(true) + "/notPackageInfo.java", false, false); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user