Skip to content

Commit 7e2b817

Browse files
committed
Polish ContentDisposition
1 parent 967478b commit 7e2b817

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

spring-web/src/main/java/org/springframework/http/ContentDisposition.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import static java.time.format.DateTimeFormatter.RFC_1123_DATE_TIME;
3535

3636
/**
37-
* Represent the Content-Disposition type and parameters as defined in RFC 6266.
37+
* Representation of the Content-Disposition type and parameters as defined in RFC 6266.
3838
*
3939
* @author Sebastien Deleuze
4040
* @author Juergen Hoeller
@@ -520,7 +520,7 @@ public interface Builder {
520520
/**
521521
* Set the value of the {@literal size} parameter.
522522
* @deprecated since 5.2.3 as per
523-
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
523+
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
524524
* to be removed in a future release.
525525
*/
526526
@Deprecated
@@ -529,7 +529,7 @@ public interface Builder {
529529
/**
530530
* Set the value of the {@literal creation-date} parameter.
531531
* @deprecated since 5.2.3 as per
532-
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
532+
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
533533
* to be removed in a future release.
534534
*/
535535
@Deprecated
@@ -538,7 +538,7 @@ public interface Builder {
538538
/**
539539
* Set the value of the {@literal modification-date} parameter.
540540
* @deprecated since 5.2.3 as per
541-
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
541+
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
542542
* to be removed in a future release.
543543
*/
544544
@Deprecated
@@ -547,7 +547,7 @@ public interface Builder {
547547
/**
548548
* Set the value of the {@literal read-date} parameter.
549549
* @deprecated since 5.2.3 as per
550-
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
550+
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
551551
* to be removed in a future release.
552552
*/
553553
@Deprecated
@@ -612,24 +612,28 @@ public Builder filename(String filename, Charset charset) {
612612
}
613613

614614
@Override
615+
@SuppressWarnings("deprecation")
615616
public Builder size(Long size) {
616617
this.size = size;
617618
return this;
618619
}
619620

620621
@Override
622+
@SuppressWarnings("deprecation")
621623
public Builder creationDate(ZonedDateTime creationDate) {
622624
this.creationDate = creationDate;
623625
return this;
624626
}
625627

626628
@Override
629+
@SuppressWarnings("deprecation")
627630
public Builder modificationDate(ZonedDateTime modificationDate) {
628631
this.modificationDate = modificationDate;
629632
return this;
630633
}
631634

632635
@Override
636+
@SuppressWarnings("deprecation")
633637
public Builder readDate(ZonedDateTime readDate) {
634638
this.readDate = readDate;
635639
return this;

0 commit comments

Comments
 (0)