mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-26 17:09:05 +00:00
Stop referring to "Java 8" features in documentation
Closes gh-36310
This commit is contained in:
+6
-6
@@ -576,7 +576,7 @@ class AnnotationUtilsTests {
|
||||
final List<String> expectedValuesJava = asList("A", "B", "C");
|
||||
final List<String> expectedValuesSpring = asList("A", "B", "C", "meta1");
|
||||
|
||||
// Java 8
|
||||
// Java
|
||||
MyRepeatable[] array = MyRepeatableClass.class.getAnnotationsByType(MyRepeatable.class);
|
||||
assertThat(array).isNotNull();
|
||||
List<String> values = stream(array).map(MyRepeatable::value).collect(toList());
|
||||
@@ -601,7 +601,7 @@ class AnnotationUtilsTests {
|
||||
final List<String> expectedValuesJava = asList("A", "B", "C");
|
||||
final List<String> expectedValuesSpring = asList("A", "B", "C", "meta1");
|
||||
|
||||
// Java 8
|
||||
// Java
|
||||
MyRepeatable[] array = clazz.getAnnotationsByType(MyRepeatable.class);
|
||||
assertThat(array).isNotNull();
|
||||
List<String> values = stream(array).map(MyRepeatable::value).collect(toList());
|
||||
@@ -626,7 +626,7 @@ class AnnotationUtilsTests {
|
||||
final List<String> expectedValuesJava = asList("X", "Y", "Z");
|
||||
final List<String> expectedValuesSpring = asList("X", "Y", "Z", "meta2");
|
||||
|
||||
// Java 8
|
||||
// Java
|
||||
MyRepeatable[] array = clazz.getAnnotationsByType(MyRepeatable.class);
|
||||
assertThat(array).isNotNull();
|
||||
List<String> values = stream(array).map(MyRepeatable::value).collect(toList());
|
||||
@@ -651,7 +651,7 @@ class AnnotationUtilsTests {
|
||||
final List<String> expectedValuesJava = asList("X", "Y", "Z");
|
||||
final List<String> expectedValuesSpring = asList("X", "Y", "Z", "meta2");
|
||||
|
||||
// Java 8
|
||||
// Java
|
||||
MyRepeatable[] array = clazz.getAnnotationsByType(MyRepeatable.class);
|
||||
assertThat(array).isNotNull();
|
||||
List<String> values = stream(array).map(MyRepeatable::value).collect(toList());
|
||||
@@ -675,7 +675,7 @@ class AnnotationUtilsTests {
|
||||
final List<String> expectedValuesJava = asList("A", "B", "C");
|
||||
final List<String> expectedValuesSpring = asList("A", "B", "C", "meta1");
|
||||
|
||||
// Java 8
|
||||
// Java
|
||||
MyRepeatable[] array = MyRepeatableClass.class.getDeclaredAnnotationsByType(MyRepeatable.class);
|
||||
assertThat(array).isNotNull();
|
||||
List<String> values = stream(array).map(MyRepeatable::value).collect(toList());
|
||||
@@ -699,7 +699,7 @@ class AnnotationUtilsTests {
|
||||
void getDeclaredRepeatableAnnotationsDeclaredOnSuperclass() {
|
||||
final Class<?> clazz = SubMyRepeatableClass.class;
|
||||
|
||||
// Java 8
|
||||
// Java
|
||||
MyRepeatable[] array = clazz.getDeclaredAnnotationsByType(MyRepeatable.class);
|
||||
assertThat(array).isNotNull();
|
||||
assertThat(array).isEmpty();
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ class MultipleComposedAnnotationsOnSingleAnnotatedElementTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled("Disabled since some Java 8 updates handle the bridge method differently")
|
||||
@Disabled("Disabled since some Java versions/compilers handle the bridge method differently")
|
||||
void getMultipleComposedAnnotationsOnBridgeMethod() {
|
||||
Set<Cacheable> cacheables = getAllMergedAnnotations(getBridgeMethod(), Cacheable.class);
|
||||
assertThat(cacheables).isNotNull();
|
||||
|
||||
Reference in New Issue
Block a user