Revert "SessionRepository.save returns S"

See gh-809
This commit is contained in:
Vedran Pavic
2017-06-23 18:48:30 +02:00
parent c6c6beb40c
commit b321ff02f0
5 changed files with 5 additions and 9 deletions

View File

@@ -76,9 +76,8 @@ public class MapSessionRepository implements SessionRepository<Session> {
this.defaultMaxInactiveInterval = Integer.valueOf(defaultMaxInactiveInterval);
}
public Session save(Session session) {
public void save(Session session) {
this.sessions.put(session.getId(), new MapSession(session));
return session;
}
public Session findById(String id) {

View File

@@ -52,7 +52,7 @@ public interface SessionRepository<S extends Session> {
*
* @param session the {@link Session} to save
*/
S save(S session);
void save(S session);
/**
* Gets the {@link Session} by the {@link Session#getId()} or null if no