Refine RedisSerializer implementations.
This commit polishes up method ordering, introduces Javadoc where missing and updates nullability annotations and argument names. Closes #1097
This commit is contained in:
@@ -108,8 +108,8 @@ class CacheTestParams {
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public byte[] serialize(@Nullable Object o) throws SerializationException {
|
||||
return serializer.serialize(o);
|
||||
public byte[] serialize(@Nullable Object value) throws SerializationException {
|
||||
return serializer.serialize(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -23,7 +23,6 @@ import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.mockito.Mock;
|
||||
import org.mockito.junit.jupiter.MockitoExtension;
|
||||
|
||||
import org.springframework.data.redis.connection.DefaultMessage;
|
||||
import org.springframework.data.redis.connection.Message;
|
||||
import org.springframework.data.redis.connection.MessageListener;
|
||||
@@ -311,7 +310,7 @@ class MessageListenerUnitTests {
|
||||
static class PojoRedisSerializer implements RedisSerializer<Pojo> {
|
||||
|
||||
@Override
|
||||
public byte[] serialize(Pojo t) throws SerializationException {
|
||||
public byte[] serialize(Pojo value) throws SerializationException {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user