Skip to content

Commit

Permalink
Polish ContentDisposition
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed May 28, 2020
1 parent 967478b commit 7e2b817
Showing 1 changed file with 9 additions and 5 deletions.
Expand Up @@ -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
Expand Down Expand Up @@ -520,7 +520,7 @@ public interface Builder {
/**
* Set the value of the {@literal size} parameter.
* @deprecated since 5.2.3 as per
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
* to be removed in a future release.
*/
@Deprecated
Expand All @@ -529,7 +529,7 @@ public interface Builder {
/**
* Set the value of the {@literal creation-date} parameter.
* @deprecated since 5.2.3 as per
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
* to be removed in a future release.
*/
@Deprecated
Expand All @@ -538,7 +538,7 @@ public interface Builder {
/**
* Set the value of the {@literal modification-date} parameter.
* @deprecated since 5.2.3 as per
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
* to be removed in a future release.
*/
@Deprecated
Expand All @@ -547,7 +547,7 @@ public interface Builder {
/**
* Set the value of the {@literal read-date} parameter.
* @deprecated since 5.2.3 as per
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
* to be removed in a future release.
*/
@Deprecated
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7e2b817

Please sign in to comment.