1
1
/*
2
- * Copyright 2002-2020 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@ class AnnotationBackCompatibilityTests {
33
33
34
34
@ Test
35
35
void multiplRoutesToMetaAnnotation () {
36
- Class <WithMetaMetaTestAnnotation1AndMetaTestAnnotation2 > source = WithMetaMetaTestAnnotation1AndMetaTestAnnotation2 .class ;
36
+ Class <? > source = WithMetaMetaTestAnnotation1AndMetaTestAnnotation2 .class ;
37
37
// Merged annotation chooses lowest depth
38
38
MergedAnnotation <TestAnnotation > mergedAnnotation = MergedAnnotations .from (source ).get (TestAnnotation .class );
39
39
assertThat (mergedAnnotation .getString ("value" )).isEqualTo ("testAndMetaTest" );
@@ -60,14 +60,12 @@ void defaultValue() {
60
60
@ Retention (RetentionPolicy .RUNTIME )
61
61
@ TestAnnotation ("metaTest" )
62
62
@interface MetaTestAnnotation {
63
-
64
63
}
65
64
66
65
@ Retention (RetentionPolicy .RUNTIME )
67
66
@ TestAnnotation ("testAndMetaTest" )
68
67
@ MetaTestAnnotation
69
68
@interface TestAndMetaTestAnnotation {
70
-
71
69
}
72
70
73
71
@ Retention (RetentionPolicy .RUNTIME )
@@ -78,7 +76,6 @@ void defaultValue() {
78
76
@ MetaMetaTestAnnotation
79
77
@ TestAndMetaTestAnnotation
80
78
static class WithMetaMetaTestAnnotation1AndMetaTestAnnotation2 {
81
-
82
79
}
83
80
84
81
@ Retention (RetentionPolicy .RUNTIME )
@@ -94,7 +91,6 @@ static class WithMetaMetaTestAnnotation1AndMetaTestAnnotation2 {
94
91
95
92
@ DefaultValueAnnotation
96
93
static class WithDefaultValue {
97
-
98
94
}
99
95
100
96
enum TestEnum {
0 commit comments