File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
spring-core/src/test/java/org/springframework/core/annotation Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 37
37
38
38
import jakarta .annotation .Resource ;
39
39
import org .junit .jupiter .api .Test ;
40
- import org .junit .jupiter .api .condition .JRE ;
41
40
42
41
import org .springframework .core .Ordered ;
43
42
import org .springframework .core .annotation .MergedAnnotation .Adapt ;
@@ -1871,12 +1870,10 @@ void toStringForSynthesizedAnnotations() throws Exception {
1871
1870
1872
1871
assertThat (webMappingWithAliases .toString ()).isNotEqualTo (synthesizedWebMapping1 .toString ());
1873
1872
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 );
1880
1877
assertToStringForWebMappingWithPathAndValue (synthesizedWebMapping1 );
1881
1878
assertToStringForWebMappingWithPathAndValue (synthesizedWebMapping2 );
1882
1879
}
You can’t perform that action at this time.
0 commit comments