mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
one more test for accessing package-private field from annotation
This commit is contained in:
+9
@@ -84,6 +84,15 @@ public class AccessCanBeTightenedInspectionTest extends LightInspectionTestCase
|
||||
"}");
|
||||
}
|
||||
|
||||
public void testUseOfPackagePrivateInAnnotation() {
|
||||
doTest("import java.util.*;\n" +
|
||||
"@interface Ann{ String value(); }\n" +
|
||||
"@Ann(value = C.VAL\n)" +
|
||||
"class C {\n" +
|
||||
" static final String VAL = \"xx\";\n" +
|
||||
"}");
|
||||
}
|
||||
|
||||
public void testSameFile() {
|
||||
doTest("class C {\n" +
|
||||
" private static class Err {\n" +
|
||||
|
||||
Reference in New Issue
Block a user