Stop referring to "Java 8" features in documentation

Closes gh-36310
This commit is contained in:
Sam Brannen
2026-02-12 12:11:02 +01:00
parent 6f03c186b9
commit d84c4a39e2
37 changed files with 90 additions and 85 deletions
@@ -83,9 +83,9 @@ import org.springframework.util.xml.StaxUtils;
* detected on the classpath:
* <ul>
* <li><a href="https://github.com/FasterXML/jackson-datatype-jdk8">jackson-datatype-jdk8</a>:
* support for other Java 8 types like {@link java.util.Optional}</li>
* support for Java 8 types like {@link java.util.Optional}</li>
* <li><a href="https://github.com/FasterXML/jackson-datatype-jsr310">jackson-datatype-jsr310</a>:
* support for Java 8 Date &amp; Time API types</li>
* support for Java Date &amp; Time API types</li>
* <li><a href="https://github.com/FasterXML/jackson-module-kotlin">jackson-module-kotlin</a>:
* support for Kotlin classes and data classes</li>
* <li><a href="https://github.com/FasterXML/jackson-modules-java8/tree/2.18/parameter-names">jackson-modules-java8/parameter-names</a>:
@@ -114,9 +114,9 @@ import org.springframework.context.ApplicationContextAware;
* <li><a href="https://github.com/FasterXML/jackson-datatype-jdk7">jackson-datatype-jdk7</a>:
* support for Java 7 types like {@link java.nio.file.Path}</li>
* <li><a href="https://github.com/FasterXML/jackson-datatype-jdk8">jackson-datatype-jdk8</a>:
* support for other Java 8 types like {@link java.util.Optional}</li>
* support for Java 8 types like {@link java.util.Optional}</li>
* <li><a href="https://github.com/FasterXML/jackson-datatype-jsr310">jackson-datatype-jsr310</a>:
* support for Java 8 Date &amp; Time API types</li>
* support for Java Date &amp; Time API types</li>
* <li><a href="https://github.com/FasterXML/jackson-module-kotlin">jackson-module-kotlin</a>:
* support for Kotlin classes and data classes</li>
* </ul>
@@ -57,10 +57,12 @@ public @interface PathVariable {
/**
* Whether the path variable is required.
* <p>Defaults to {@code true}, leading to an exception being thrown if the path
* variable is missing in the incoming request. Switch this to {@code false} if
* you prefer a {@code null} or Java 8 {@code java.util.Optional} in this case.
* for example, on a {@code ModelAttribute} method which serves for different requests.
* <p>Defaults to {@code true}, leading to an exception being thrown if the
* path variable is missing in the incoming request.
* <p>Switch this to {@code false} if you prefer a {@code null} or
* {@code java.util.Optional} if the path variable does not exist &mdash;
* for example, on a {@code ModelAttribute} method which serves for different
* requests.
* @since 4.3.3
*/
boolean required() default true;
@@ -57,9 +57,9 @@ public @interface RequestAttribute {
/**
* Whether the request attribute is required.
* <p>Defaults to {@code true}, leading to an exception being thrown if
* the attribute is missing. Switch this to {@code false} if you prefer
* a {@code null} or Java 8 {@code java.util.Optional} if the attribute
* doesn't exist.
* the attribute is missing.
* <p>Switch this to {@code false} if you prefer a {@code null} or
* {@code java.util.Optional} if the attribute does not exist.
*/
boolean required() default true;
@@ -66,8 +66,8 @@ public @interface SessionAttribute {
* Whether the session attribute is required.
* <p>Defaults to {@code true}, leading to an exception being thrown
* if the attribute is missing in the session or there is no session.
* Switch this to {@code false} if you prefer a {@code null} or Java 8
* {@code java.util.Optional} if the attribute doesn't exist.
* <p>Switch this to {@code false} if you prefer a {@code null} or
* {@code java.util.Optional} if the attribute does not exist.
*/
boolean required() default true;