Polish
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user