diff --git a/spring-web/src/main/java/org/springframework/http/ContentDisposition.java b/spring-web/src/main/java/org/springframework/http/ContentDisposition.java index be48af5a92..3e74f9ac1a 100644 --- a/spring-web/src/main/java/org/springframework/http/ContentDisposition.java +++ b/spring-web/src/main/java/org/springframework/http/ContentDisposition.java @@ -34,7 +34,7 @@ import static java.nio.charset.StandardCharsets.UTF_8; import static java.time.format.DateTimeFormatter.RFC_1123_DATE_TIME; /** - * Represent the Content-Disposition type and parameters as defined in RFC 6266. + * Representation of the Content-Disposition type and parameters as defined in RFC 6266. * * @author Sebastien Deleuze * @author Juergen Hoeller @@ -520,7 +520,7 @@ public final class ContentDisposition { /** * Set the value of the {@literal size} parameter. * @deprecated since 5.2.3 as per - * RFC 6266, Apendix B, + * RFC 6266, Appendix B, * to be removed in a future release. */ @Deprecated @@ -529,7 +529,7 @@ public final class ContentDisposition { /** * Set the value of the {@literal creation-date} parameter. * @deprecated since 5.2.3 as per - * RFC 6266, Apendix B, + * RFC 6266, Appendix B, * to be removed in a future release. */ @Deprecated @@ -538,7 +538,7 @@ public final class ContentDisposition { /** * Set the value of the {@literal modification-date} parameter. * @deprecated since 5.2.3 as per - * RFC 6266, Apendix B, + * RFC 6266, Appendix B, * to be removed in a future release. */ @Deprecated @@ -547,7 +547,7 @@ public final class ContentDisposition { /** * Set the value of the {@literal read-date} parameter. * @deprecated since 5.2.3 as per - * RFC 6266, Apendix B, + * RFC 6266, Appendix B, * to be removed in a future release. */ @Deprecated @@ -612,24 +612,28 @@ public final class ContentDisposition { } @Override + @SuppressWarnings("deprecation") public Builder size(Long size) { this.size = size; return this; } @Override + @SuppressWarnings("deprecation") public Builder creationDate(ZonedDateTime creationDate) { this.creationDate = creationDate; return this; } @Override + @SuppressWarnings("deprecation") public Builder modificationDate(ZonedDateTime modificationDate) { this.modificationDate = modificationDate; return this; } @Override + @SuppressWarnings("deprecation") public Builder readDate(ZonedDateTime readDate) { this.readDate = readDate; return this;