diff --git a/spring-session/src/main/java/org/springframework/session/SessionRepository.java b/spring-session/src/main/java/org/springframework/session/SessionRepository.java
index 28bb97c1..4949c3fb 100644
--- a/spring-session/src/main/java/org/springframework/session/SessionRepository.java
+++ b/spring-session/src/main/java/org/springframework/session/SessionRepository.java
@@ -22,6 +22,18 @@ package org.springframework.session;
* @since 1.0
*/
public interface SessionRepository {
+
+ /**
+ * Creates a new {@link Session} that is capable of being persisted by this {@link SessionRepository}.
+ *
+ *
This allows optimizations and customizations in how the {@link Session} is persisted. For example, the + * implementation returned might keep track of the changes ensuring that only the delta needs to be persisted on + * a save.
+ * + * @return a new {@link Session} that is capable of being persisted by this {@link SessionRepository} + */ + S createSession(); + /** * Ensures the {@link Session} created by {@link org.springframework.session.SessionRepository#createSession()} is saved. * @@ -46,15 +58,4 @@ public interface SessionRepositoryThis allows optimizations and customizations in how the {@link Session} is persisted. For example, the - * implementation returned might keep track of the changes ensuring that only the delta needs to be persisted on - * a save.
- * - * @return a new {@link Session} that is capable of being persisted by this {@link SessionRepository} - */ - S createSession(); } \ No newline at end of file