Wrapped annotations test data so it will be processed by namespace comparator correctly.

This commit is contained in:
Evgeny Gerashchenko
2013-03-11 17:02:06 +04:00
parent 0f5de451ec
commit f23327458f
18 changed files with 257 additions and 71 deletions

View File

@@ -1,35 +1,38 @@
package test;
@interface MyAnnotationWithParam {
MyAnnotation value();
}
public interface AnnotationWithAnnotationInParam {
@interface MyAnnotation {
String value();
}
public @interface MyAnnotationWithParam {
MyAnnotation value();
}
@MyAnnotationWithParam(@MyAnnotation("test"))
class A {}
public @interface MyAnnotation {
String value();
}
@interface MyAnnotation2 {
String[] value();
}
@MyAnnotationWithParam(@MyAnnotation("test"))
public class A {}
@interface MyAnnotationWithParam2 {
MyAnnotation2 value();
}
public @interface MyAnnotation2 {
String[] value();
}
@MyAnnotationWithParam2(@MyAnnotation2({"test", "test2"}))
class B {}
public @interface MyAnnotationWithParam2 {
MyAnnotation2 value();
}
@interface MyAnnotation3 {
String first();
String second();
}
@MyAnnotationWithParam2(@MyAnnotation2({"test", "test2"}))
public class B {}
@interface MyAnnotationWithParam3 {
MyAnnotation3 value();
}
public @interface MyAnnotation3 {
String first();
String second();
}
@MyAnnotationWithParam3(@MyAnnotation3(first = "f", second = "s"))
class C {}
public @interface MyAnnotationWithParam3 {
MyAnnotation3 value();
}
@MyAnnotationWithParam3(@MyAnnotation3(first = "f", second = "s"))
public class C {}
}