Remove warnings

This commit is contained in:
Rob Winch
2015-11-17 11:03:36 -06:00
parent ee09a9e863
commit 41298c490e
2 changed files with 2 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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());