Skip to content

Commit 55c315e

Browse files
committed
Merge branch '6.2.x'
2 parents 18eb2a6 + 4903fee commit 55c315e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public String toString() {
209209
* @return a builder to create the cookie with
210210
* @since 6.0
211211
*/
212-
public static ResponseCookieBuilder from(final String name) {
212+
public static ResponseCookieBuilder from(String name) {
213213
return new DefaultResponseCookieBuilder(name, null, false);
214214
}
215215

@@ -220,7 +220,7 @@ public static ResponseCookieBuilder from(final String name) {
220220
* @param value the cookie value
221221
* @return a builder to create the cookie with
222222
*/
223-
public static ResponseCookieBuilder from(final String name, final String value) {
223+
public static ResponseCookieBuilder from(String name, @Nullable String value) {
224224
return new DefaultResponseCookieBuilder(name, value, false);
225225
}
226226

@@ -234,7 +234,7 @@ public static ResponseCookieBuilder from(final String name, final String value)
234234
* @return a builder to create the cookie with
235235
* @since 5.2.5
236236
*/
237-
public static ResponseCookieBuilder fromClientResponse(final String name, final String value) {
237+
public static ResponseCookieBuilder fromClientResponse(String name, @Nullable String value) {
238238
return new DefaultResponseCookieBuilder(name, value, true);
239239
}
240240

@@ -461,7 +461,7 @@ private static class DefaultResponseCookieBuilder implements ResponseCookieBuild
461461

462462
private @Nullable String sameSite;
463463

464-
public DefaultResponseCookieBuilder(String name, @Nullable String value, boolean lenient) {
464+
DefaultResponseCookieBuilder(String name, @Nullable String value, boolean lenient) {
465465
this.name = name;
466466
this.value = value;
467467
this.lenient = lenient;

0 commit comments

Comments
 (0)