The methods ResponseCookie.from(...) and ResponseCookie.fromClientResponse(...) declare non-nullable String value arguments.
However, ResponseCookieBuilder.value(@Nullable String value) and DefaultResponseCookieBuilder(String name, @Nullable String value, boolean lenient) are both marked with @Nullable.
Additionally, ResponseCookie and its superclass HttpCookie allow for a null value (it is turned into an empty String).
The methods
ResponseCookie.from(...)andResponseCookie.fromClientResponse(...)declare non-nullableString valuearguments.However,
ResponseCookieBuilder.value(@Nullable String value)andDefaultResponseCookieBuilder(String name, @Nullable String value, boolean lenient)are both marked with@Nullable.Additionally,
ResponseCookieand its superclassHttpCookieallow for anullvalue (it is turned into an emptyString).