mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-27 01:19:02 +00:00
Merge branch '6.2.x'
This commit is contained in:
@@ -209,7 +209,7 @@ public final class ResponseCookie extends HttpCookie {
|
||||
* @return a builder to create the cookie with
|
||||
* @since 6.0
|
||||
*/
|
||||
public static ResponseCookieBuilder from(final String name) {
|
||||
public static ResponseCookieBuilder from(String name) {
|
||||
return new DefaultResponseCookieBuilder(name, null, false);
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ public final class ResponseCookie extends HttpCookie {
|
||||
* @param value the cookie value
|
||||
* @return a builder to create the cookie with
|
||||
*/
|
||||
public static ResponseCookieBuilder from(final String name, final String value) {
|
||||
public static ResponseCookieBuilder from(String name, @Nullable String value) {
|
||||
return new DefaultResponseCookieBuilder(name, value, false);
|
||||
}
|
||||
|
||||
@@ -234,7 +234,7 @@ public final class ResponseCookie extends HttpCookie {
|
||||
* @return a builder to create the cookie with
|
||||
* @since 5.2.5
|
||||
*/
|
||||
public static ResponseCookieBuilder fromClientResponse(final String name, final String value) {
|
||||
public static ResponseCookieBuilder fromClientResponse(String name, @Nullable String value) {
|
||||
return new DefaultResponseCookieBuilder(name, value, true);
|
||||
}
|
||||
|
||||
@@ -461,7 +461,7 @@ public final class ResponseCookie extends HttpCookie {
|
||||
|
||||
private @Nullable String sameSite;
|
||||
|
||||
public DefaultResponseCookieBuilder(String name, @Nullable String value, boolean lenient) {
|
||||
DefaultResponseCookieBuilder(String name, @Nullable String value, boolean lenient) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
this.lenient = lenient;
|
||||
|
||||
Reference in New Issue
Block a user