Remove warnings
This commit is contained in:
@@ -434,6 +434,7 @@ public class RedisOperationsSessionRepository implements FindByPrincipalNameSess
|
||||
return redisSession;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void onMessage(Message message, byte[] pattern) {
|
||||
byte[] messageChannel = message.getChannel();
|
||||
byte[] messageBody = message.getBody();
|
||||
@@ -663,6 +664,7 @@ public class RedisOperationsSessionRepository implements FindByPrincipalNameSess
|
||||
return cached.getMaxInactiveIntervalInSeconds();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object getAttribute(String attributeName) {
|
||||
return cached.getAttribute(attributeName);
|
||||
}
|
||||
|
||||
@@ -312,7 +312,6 @@ public class RedisOperationsSessionRepositoryTests {
|
||||
LAST_ACCESSED_ATTR, expected.getLastAccessedTime());
|
||||
when(boundHashOperations.entries()).thenReturn(map);
|
||||
|
||||
long now = System.currentTimeMillis();
|
||||
RedisSession session = redisRepository.getSession(expected.getId());
|
||||
assertThat(session.getId()).isEqualTo(expected.getId());
|
||||
assertThat(session.getAttributeNames()).isEqualTo(expected.getAttributeNames());
|
||||
|
||||
Reference in New Issue
Block a user