Skip to content

Commit 839cc5f

Browse files
committed
Remove unnecessary JDK 9+ check in MergedAnnotationsTests
1 parent bf40033 commit 839cc5f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
import jakarta.annotation.Resource;
3939
import org.junit.jupiter.api.Test;
40-
import org.junit.jupiter.api.condition.JRE;
4140

4241
import org.springframework.core.Ordered;
4342
import org.springframework.core.annotation.MergedAnnotation.Adapt;
@@ -1871,12 +1870,10 @@ void toStringForSynthesizedAnnotations() throws Exception {
18711870

18721871
assertThat(webMappingWithAliases.toString()).isNotEqualTo(synthesizedWebMapping1.toString());
18731872

1874-
if (JRE.currentVersion().ordinal() > JRE.JAVA_8.ordinal()) {
1875-
// The unsynthesized annotation for handleMappedWithSamePathAndValueAttributes()
1876-
// should produce the same toString() results as synthesized annotations for
1877-
// handleMappedWithPathAttribute() on Java 9 or higher
1878-
assertToStringForWebMappingWithPathAndValue(webMappingWithPathAndValue);
1879-
}
1873+
// The unsynthesized annotation for handleMappedWithSamePathAndValueAttributes()
1874+
// should produce the same toString() results as synthesized annotations for
1875+
// handleMappedWithPathAttribute() on Java 9 or higher
1876+
assertToStringForWebMappingWithPathAndValue(webMappingWithPathAndValue);
18801877
assertToStringForWebMappingWithPathAndValue(synthesizedWebMapping1);
18811878
assertToStringForWebMappingWithPathAndValue(synthesizedWebMapping2);
18821879
}

0 commit comments

Comments
 (0)