Skip to content

Commit d1c0ea7

Browse files
vpavicsbrannen
authored andcommitted
Set MockSessionCookieConfig#maxAge default to -1
Issue: SPR-15142 (cherry picked from 83beb9d)
1 parent 53e2d7d commit d1c0ea7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-test/src/main/java/org/springframework/mock/web/MockSessionCookieConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ public class MockSessionCookieConfig implements SessionCookieConfig {
3939

4040
private boolean secure;
4141

42-
private int maxAge;
42+
private int maxAge = -1;
4343

4444

4545
@Override

spring-web/src/test/java/org/springframework/mock/web/test/MockSessionCookieConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ public class MockSessionCookieConfig implements SessionCookieConfig {
3939

4040
private boolean secure;
4141

42-
private int maxAge;
42+
private int maxAge = -1;
4343

4444

4545
@Override

0 commit comments

Comments
 (0)