Skip to content

Commit b1414bf

Browse files
committed
Polishing
1 parent f919439 commit b1414bf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibilityTests.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@ class AnnotationBackCompatibilityTests {
3333

3434
@Test
3535
void multiplRoutesToMetaAnnotation() {
36-
Class<WithMetaMetaTestAnnotation1AndMetaTestAnnotation2> source = WithMetaMetaTestAnnotation1AndMetaTestAnnotation2.class;
36+
Class<?> source = WithMetaMetaTestAnnotation1AndMetaTestAnnotation2.class;
3737
// Merged annotation chooses lowest depth
3838
MergedAnnotation<TestAnnotation> mergedAnnotation = MergedAnnotations.from(source).get(TestAnnotation.class);
3939
assertThat(mergedAnnotation.getString("value")).isEqualTo("testAndMetaTest");
@@ -60,14 +60,12 @@ void defaultValue() {
6060
@Retention(RetentionPolicy.RUNTIME)
6161
@TestAnnotation("metaTest")
6262
@interface MetaTestAnnotation {
63-
6463
}
6564

6665
@Retention(RetentionPolicy.RUNTIME)
6766
@TestAnnotation("testAndMetaTest")
6867
@MetaTestAnnotation
6968
@interface TestAndMetaTestAnnotation {
70-
7169
}
7270

7371
@Retention(RetentionPolicy.RUNTIME)
@@ -78,7 +76,6 @@ void defaultValue() {
7876
@MetaMetaTestAnnotation
7977
@TestAndMetaTestAnnotation
8078
static class WithMetaMetaTestAnnotation1AndMetaTestAnnotation2 {
81-
8279
}
8380

8481
@Retention(RetentionPolicy.RUNTIME)
@@ -94,7 +91,6 @@ static class WithMetaMetaTestAnnotation1AndMetaTestAnnotation2 {
9491

9592
@DefaultValueAnnotation
9693
static class WithDefaultValue {
97-
9894
}
9995

10096
enum TestEnum {

0 commit comments

Comments
 (0)