mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Stop referring to "Java 8" features in documentation
Closes gh-36310
This commit is contained in:
+2
-2
@@ -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 & Time API types</li>
|
||||
* support for Java Date & 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>:
|
||||
|
||||
+2
-2
@@ -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 & Time API types</li>
|
||||
* support for Java Date & 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 —
|
||||
* for example, on a {@code ModelAttribute} method which serves for different
|
||||
* requests.
|
||||
* @since 4.3.3
|
||||
*/
|
||||
boolean required() default true;
|
||||
|
||||
+3
-3
@@ -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;
|
||||
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user