From 7e2b81729eefe31e9e8b2872b0de0adc1bad2162 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 28 May 2020 14:57:53 +0200 Subject: [PATCH] Polish ContentDisposition --- .../springframework/http/ContentDisposition.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 be48af5a9218..3e74f9ac1a1d 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.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 interface Builder { /** * 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 interface Builder { /** * 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 interface Builder { /** * 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 interface Builder { /** * 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 Builder filename(String filename, Charset charset) { } @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;