Skip to content

Commit 24a30ba

Browse files
committed
Typos in InMemoryWebSessionStore
1 parent 43fbd63 commit 24a30ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-web/src/main/java/org/springframework/web/server/session/InMemoryWebSessionStore.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ public class InMemoryWebSessionStore implements WebSessionStore {
6262
* {@link IllegalStateException}.
6363
* <p>By default set to 10000.
6464
* @param maxSessions the maximum number of sessions
65-
* @since 5.1
65+
* @since 5.0.8
6666
*/
6767
public void setMaxSessions(int maxSessions) {
6868
this.maxSessions = maxSessions;
6969
}
7070

7171
/**
7272
* Return the maximum number of sessions that can be stored.
73-
* @since 5.1
73+
* @since 5.0.8
7474
*/
7575
public int getMaxSessions() {
7676
return this.maxSessions;
@@ -102,9 +102,9 @@ public Clock getClock() {
102102
* Return the map of sessions with an {@link Collections#unmodifiableMap
103103
* unmodifiable} wrapper. This could be used for management purposes, to
104104
* list active sessions, invalidate expired ones, etc.
105-
* @since 5.1
105+
* @since 5.0.8
106106
*/
107-
public Map<String, InMemoryWebSession> getSessions() {
107+
public Map<String, WebSession> getSessions() {
108108
return Collections.unmodifiableMap(this.sessions);
109109
}
110110

@@ -153,7 +153,7 @@ public Mono<WebSession> updateLastAccessTime(WebSession session) {
153153
* kicked off lazily during calls to {@link #createWebSession() create} or
154154
* {@link #retrieveSession retrieve}, no less than 60 seconds apart.
155155
* This method can be called to force a check at a specific time.
156-
* @since 5.1
156+
* @since 5.0.8
157157
*/
158158
public void removeExpiredSessions() {
159159
this.expiredSessionChecker.removeExpiredSessions(this.clock.instant());

0 commit comments

Comments
 (0)