1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16+
1617package org .springframework .web .server .session ;
1718
1819import java .time .Clock ;
@@ -57,7 +58,7 @@ public class InMemoryWebSessionStore implements WebSessionStore {
5758 * @param clock the clock to use
5859 */
5960 public void setClock (Clock clock ) {
60- Assert .notNull (clock , "'clock' is required. " );
61+ Assert .notNull (clock , "Clock is required" );
6162 this .clock = clock ;
6263 }
6364
@@ -93,7 +94,8 @@ public Mono<WebSession> updateLastAccessTime(WebSession webSession) {
9394 });
9495 }
9596
96- /* Private methods for InMemoryWebSession */
97+
98+ // Private methods for InMemoryWebSession
9799
98100 private Mono <Void > changeSessionId (String oldId , WebSession session ) {
99101 this .sessions .remove (oldId );
@@ -121,7 +123,6 @@ private class InMemoryWebSession implements WebSession {
121123
122124 private volatile boolean started ;
123125
124-
125126 InMemoryWebSession () {
126127 this .id = new AtomicReference <>(String .valueOf (idGenerator .generateId ()));
127128 this .attributes = new ConcurrentHashMap <>();
@@ -139,7 +140,6 @@ private class InMemoryWebSession implements WebSession {
139140 this .started = existingSession .isStarted (); // Use method (explicit or implicit start)
140141 }
141142
142-
143143 @ Override
144144 public String getId () {
145145 return this .id .get ();
@@ -170,7 +170,6 @@ public Duration getMaxIdleTime() {
170170 return this .maxIdleTime ;
171171 }
172172
173-
174173 @ Override
175174 public void start () {
176175 this .started = true ;
0 commit comments