13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+
16
17
package org .springframework .web .server .session ;
17
18
18
19
import java .time .Clock ;
@@ -57,7 +58,7 @@ public class InMemoryWebSessionStore implements WebSessionStore {
57
58
* @param clock the clock to use
58
59
*/
59
60
public void setClock (Clock clock ) {
60
- Assert .notNull (clock , "'clock' is required. " );
61
+ Assert .notNull (clock , "Clock is required" );
61
62
this .clock = clock ;
62
63
}
63
64
@@ -93,7 +94,8 @@ public Mono<WebSession> updateLastAccessTime(WebSession webSession) {
93
94
});
94
95
}
95
96
96
- /* Private methods for InMemoryWebSession */
97
+
98
+ // Private methods for InMemoryWebSession
97
99
98
100
private Mono <Void > changeSessionId (String oldId , WebSession session ) {
99
101
this .sessions .remove (oldId );
@@ -121,7 +123,6 @@ private class InMemoryWebSession implements WebSession {
121
123
122
124
private volatile boolean started ;
123
125
124
-
125
126
InMemoryWebSession () {
126
127
this .id = new AtomicReference <>(String .valueOf (idGenerator .generateId ()));
127
128
this .attributes = new ConcurrentHashMap <>();
@@ -139,7 +140,6 @@ private class InMemoryWebSession implements WebSession {
139
140
this .started = existingSession .isStarted (); // Use method (explicit or implicit start)
140
141
}
141
142
142
-
143
143
@ Override
144
144
public String getId () {
145
145
return this .id .get ();
@@ -170,7 +170,6 @@ public Duration getMaxIdleTime() {
170
170
return this .maxIdleTime ;
171
171
}
172
172
173
-
174
173
@ Override
175
174
public void start () {
176
175
this .started = true ;
0 commit comments