This commit is contained in:
Vedran Pavic
2017-10-27 08:22:59 +02:00
parent 6f05c84aa7
commit 5df555cd53
16 changed files with 25 additions and 39 deletions

View File

@@ -68,7 +68,7 @@ public class MapReactiveSessionRepository implements ReactiveSessionRepository<M
* should be kept alive between client requests.
*/
public void setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval) {
this.defaultMaxInactiveInterval = Integer.valueOf(defaultMaxInactiveInterval);
this.defaultMaxInactiveInterval = defaultMaxInactiveInterval;
}
public Mono<Void> save(MapSession session) {

View File

@@ -66,7 +66,7 @@ public class MapSessionRepository implements SessionRepository<MapSession> {
* should be kept alive between client requests.
*/
public void setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval) {
this.defaultMaxInactiveInterval = Integer.valueOf(defaultMaxInactiveInterval);
this.defaultMaxInactiveInterval = defaultMaxInactiveInterval;
}
public void save(MapSession session) {

View File

@@ -76,8 +76,7 @@ public class SessionEventHttpSessionListenerAdapter
Session session = event.getSession();
HttpSession httpSession = new HttpSessionAdapter<>(session,
this.context);
HttpSessionEvent httpSessionEvent = new HttpSessionEvent(httpSession);
return httpSessionEvent;
return new HttpSessionEvent(httpSession);
}
/*

View File

@@ -75,8 +75,7 @@ public class SessionEventHttpSessionListenerAdapterTests {
// none)
@Test
public void constructorEmptyWorks() {
new SessionEventHttpSessionListenerAdapter(
Collections.<HttpSessionListener>emptyList());
new SessionEventHttpSessionListenerAdapter(Collections.emptyList());
}
/**
@@ -86,7 +85,7 @@ public class SessionEventHttpSessionListenerAdapterTests {
@Test
public void onApplicationEventEmptyListenersDoesNotUseEvent() {
this.listener = new SessionEventHttpSessionListenerAdapter(
Collections.<HttpSessionListener>emptyList());
Collections.emptyList());
this.destroyed = mock(SessionDestroyedEvent.class);
this.listener.onApplicationEvent(this.destroyed);

View File

@@ -136,7 +136,7 @@ public class SessionRepositoryMessageInterceptorTests {
@Test(expected = IllegalArgumentException.class)
public void setMatchingMessageTypesEmpty() {
this.interceptor.setMatchingMessageTypes(Collections.<SimpMessageType>emptySet());
this.interceptor.setMatchingMessageTypes(Collections.emptySet());
}
@Test