Stop referring to "Java 8" features in documentation

Closes gh-36310
This commit is contained in:
Sam Brannen
2026-02-12 11:58:19 +01:00
parent 6f03c186b9
commit d84c4a39e2
37 changed files with 90 additions and 85 deletions
@@ -26,9 +26,9 @@ import java.lang.annotation.Target;
* Container annotation that aggregates several {@link ComponentScan} annotations.
*
* <p>Can be used natively, declaring several nested {@link ComponentScan} annotations.
* Can also be used in conjunction with Java 8's support for repeatable annotations,
* where {@link ComponentScan} can simply be declared several times on the same method,
* implicitly generating this container annotation.
* Can also be used in conjunction with Java's support for repeatable annotations,
* where {@link ComponentScan @ComponentScan} can simply be declared several times
* on the same method, implicitly generating this container annotation.
*
* @author Juergen Hoeller
* @since 4.3
@@ -443,7 +443,7 @@ class ConfigurationClassParser {
Set<MethodMetadata> beanMethods = retrieveBeanMethodMetadata(ifc);
for (MethodMetadata methodMetadata : beanMethods) {
if (!methodMetadata.isAbstract()) {
// A default method or other concrete method on a Java 8+ interface...
// A default method or other concrete method on a Java interface...
configClass.addBeanMethod(new BeanMethod(methodMetadata, configClass));
}
}
@@ -26,9 +26,10 @@ import java.lang.annotation.Target;
* Container annotation that aggregates several {@link PropertySource} annotations.
*
* <p>Can be used natively, declaring several nested {@link PropertySource} annotations.
* Can also be used in conjunction with Java 8's support for <em>repeatable annotations</em>,
* where {@link PropertySource} can simply be declared several times on the same
* {@linkplain ElementType#TYPE type}, implicitly generating this container annotation.
* Can also be used in conjunction with Java's support for <em>repeatable annotations</em>,
* where {@link PropertySource @PropertySource} can simply be declared several
* times on the same {@linkplain ElementType#TYPE type}, implicitly generating
* this container annotation.
*
* @author Phillip Webb
* @since 4.0
@@ -28,9 +28,9 @@ import org.springframework.aot.hint.annotation.Reflective;
* Container annotation that aggregates several {@link Scheduled} annotations.
*
* <p>Can be used natively, declaring several nested {@link Scheduled} annotations.
* Can also be used in conjunction with Java 8's support for repeatable annotations,
* where {@link Scheduled} can simply be declared several times on the same method,
* implicitly generating this container annotation.
* Can also be used in conjunction with Java's support for repeatable annotations,
* where {@link Scheduled @Scheduled} can simply be declared several times on the
* same method, implicitly generating this container annotation.
*
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
* <em>composed annotations</em>.