From 19cbba6b344f75e2da0044dde51b609dd3c34833 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Wed, 12 Oct 2022 10:33:01 +0800 Subject: [PATCH] Use correct RFC number for ProblemDetail support in Javadoc Closes gh-29302 --- .../src/main/java/org/springframework/web/ErrorResponse.java | 2 +- .../java/org/springframework/web/ErrorResponseException.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/ErrorResponse.java b/spring-web/src/main/java/org/springframework/web/ErrorResponse.java index a92416f4dcc..c484f48f933 100644 --- a/spring-web/src/main/java/org/springframework/web/ErrorResponse.java +++ b/spring-web/src/main/java/org/springframework/web/ErrorResponse.java @@ -27,7 +27,7 @@ import org.springframework.lang.Nullable; /** * Representation of a complete RFC 7807 error response including status, - * headers, and an RFC 7808 formatted {@link ProblemDetail} body. Allows any + * headers, and an RFC 7807 formatted {@link ProblemDetail} body. Allows any * exception to expose HTTP error response information. * *

{@link ErrorResponseException} is a default implementation of this diff --git a/spring-web/src/main/java/org/springframework/web/ErrorResponseException.java b/spring-web/src/main/java/org/springframework/web/ErrorResponseException.java index febea11a70c..96f35b4b7b8 100644 --- a/spring-web/src/main/java/org/springframework/web/ErrorResponseException.java +++ b/spring-web/src/main/java/org/springframework/web/ErrorResponseException.java @@ -26,7 +26,7 @@ import org.springframework.lang.Nullable; /** * {@link RuntimeException} that implements {@link ErrorResponse} to expose - * an HTTP status, response headers, and a body formatted as an RFC 7808 + * an HTTP status, response headers, and a body formatted as an RFC 7807 * {@link ProblemDetail}. * *

The exception can be used as is, or it can be extended as a more specific