Skip to content

Commit

Permalink
Add missing @nullable annotations in ContentDisposition.Builder
Browse files Browse the repository at this point in the history
Closes gh-30820
  • Loading branch information
izeye authored and sdeleuze committed Jul 11, 2023
1 parent f19433f commit 8ecedb8
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -704,7 +704,7 @@ public interface Builder {
/**
* Set the value of the {@literal name} parameter.
*/
Builder name(String name);
Builder name(@Nullable String name);

/**
* Set the value of the {@literal filename} parameter. The given
Expand All @@ -713,7 +713,7 @@ public interface Builder {
* be escaped with a backslash, e.g. {@code "foo\"bar.txt"} becomes
* {@code "foo\\\"bar.txt"}.
*/
Builder filename(String filename);
Builder filename(@Nullable String filename);

/**
* Set the value of the {@code filename} that will be encoded as
Expand All @@ -724,7 +724,7 @@ public interface Builder {
* <a href="https://tools.ietf.org/html/rfc7578#section-4.2">RFC 7578, Section 4.2</a>
* and also RFC 5987 mention it does not apply to multipart requests.
*/
Builder filename(String filename, Charset charset);
Builder filename(@Nullable String filename, @Nullable Charset charset);

/**
* Set the value of the {@literal size} parameter.
Expand All @@ -733,7 +733,7 @@ public interface Builder {
* to be removed in a future release.
*/
@Deprecated
Builder size(Long size);
Builder size(@Nullable Long size);

/**
* Set the value of the {@literal creation-date} parameter.
Expand All @@ -742,7 +742,7 @@ public interface Builder {
* to be removed in a future release.
*/
@Deprecated
Builder creationDate(ZonedDateTime creationDate);
Builder creationDate(@Nullable ZonedDateTime creationDate);

/**
* Set the value of the {@literal modification-date} parameter.
Expand All @@ -751,7 +751,7 @@ public interface Builder {
* to be removed in a future release.
*/
@Deprecated
Builder modificationDate(ZonedDateTime modificationDate);
Builder modificationDate(@Nullable ZonedDateTime modificationDate);

/**
* Set the value of the {@literal read-date} parameter.
Expand All @@ -760,7 +760,7 @@ public interface Builder {
* to be removed in a future release.
*/
@Deprecated
Builder readDate(ZonedDateTime readDate);
Builder readDate(@Nullable ZonedDateTime readDate);

/**
* Build the content disposition.
Expand Down

0 comments on commit 8ecedb8

Please sign in to comment.