From b1414bf15ba6cd6778cc2eacd2f1f2c0014d48fc Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 1 Sep 2022 17:23:04 +0200 Subject: [PATCH] Polishing --- .../core/annotation/AnnotationBackCompatibilityTests.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibilityTests.java b/spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibilityTests.java index 582488fa5bd..04c3b7b8366 100644 --- a/spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibilityTests.java +++ b/spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibilityTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ class AnnotationBackCompatibilityTests { @Test void multiplRoutesToMetaAnnotation() { - Class source = WithMetaMetaTestAnnotation1AndMetaTestAnnotation2.class; + Class source = WithMetaMetaTestAnnotation1AndMetaTestAnnotation2.class; // Merged annotation chooses lowest depth MergedAnnotation mergedAnnotation = MergedAnnotations.from(source).get(TestAnnotation.class); assertThat(mergedAnnotation.getString("value")).isEqualTo("testAndMetaTest"); @@ -60,14 +60,12 @@ class AnnotationBackCompatibilityTests { @Retention(RetentionPolicy.RUNTIME) @TestAnnotation("metaTest") @interface MetaTestAnnotation { - } @Retention(RetentionPolicy.RUNTIME) @TestAnnotation("testAndMetaTest") @MetaTestAnnotation @interface TestAndMetaTestAnnotation { - } @Retention(RetentionPolicy.RUNTIME) @@ -78,7 +76,6 @@ class AnnotationBackCompatibilityTests { @MetaMetaTestAnnotation @TestAndMetaTestAnnotation static class WithMetaMetaTestAnnotation1AndMetaTestAnnotation2 { - } @Retention(RetentionPolicy.RUNTIME) @@ -94,7 +91,6 @@ class AnnotationBackCompatibilityTests { @DefaultValueAnnotation static class WithDefaultValue { - } enum TestEnum {