mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
store annotation info for fields and methods in dependency cache;
supported array values in annotation defaults
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
Cleaning output files:
|
||||
out/production/ChangeAnnotationTypeMemberTypeArray/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/ChangeAnnotationTypeMemberTypeArray/C.class
|
||||
out/production/ChangeAnnotationTypeMemberTypeArray/C1.class
|
||||
out/production/ChangeAnnotationTypeMemberTypeArray/C2.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/C.java
|
||||
src/C1.java
|
||||
src/C2.java
|
||||
End of files
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
Class value() default String.class;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
Class[] value() default String.class;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(Integer.class)
|
||||
public class C {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class C1 {
|
||||
|
||||
@A({Long.class, String.class})
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A({Long.class, Double.class})
|
||||
int field;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
Cleaning output files:
|
||||
out/production/ChangeAnnotationTypeMemberTypeEnumArray/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/ChangeAnnotationTypeMemberTypeEnumArray/C.class
|
||||
out/production/ChangeAnnotationTypeMemberTypeEnumArray/C1.class
|
||||
out/production/ChangeAnnotationTypeMemberTypeEnumArray/C2.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/C.java
|
||||
src/C1.java
|
||||
src/C2.java
|
||||
End of files
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
Val value() default Val.V1;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public @interface A {
|
||||
Val[] value() default {Val.V1, Val.V2, Val.V3};
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@A(Val.V2)
|
||||
public class C {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class C1 {
|
||||
|
||||
@A({Val.V2, Val.V3})
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class C2 {
|
||||
|
||||
@A({Val.V1, Val.V2})
|
||||
int field;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public enum Val {
|
||||
V1, V2, V3;
|
||||
}
|
||||
Reference in New Issue
Block a user