From 5c41fb47cac5bf89fdc9888d22bafdcab0724687 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Tue, 6 Dec 2011 12:10:56 +0200 Subject: [PATCH] + update to Spring Framework 3.1 RC2 --- .classpath | 20 +++++++++---------- gradle.properties | 2 +- .../data/redis/cache/RedisCache.java | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.classpath b/.classpath index b33282f16..9e782b997 100644 --- a/.classpath +++ b/.classpath @@ -7,32 +7,32 @@ - - + + + + + + - - - + - - + - - + + - diff --git a/gradle.properties b/gradle.properties index 343d34c93..26addf682 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ log4jVersion = 1.2.16 slf4jVersion = 1.6.3 # Common libraries -springVersion = 3.1.0.RC1 +springVersion = 3.1.0.RC2 jacksonVersion = 1.8.5 # Testing diff --git a/src/main/java/org/springframework/data/redis/cache/RedisCache.java b/src/main/java/org/springframework/data/redis/cache/RedisCache.java index 8d1e38ba0..8a8bc2405 100644 --- a/src/main/java/org/springframework/data/redis/cache/RedisCache.java +++ b/src/main/java/org/springframework/data/redis/cache/RedisCache.java @@ -20,7 +20,7 @@ import java.util.Arrays; import java.util.Set; import org.springframework.cache.Cache; -import org.springframework.cache.support.ValueWrapperImpl; +import org.springframework.cache.support.SimpleValueWrapper; import org.springframework.dao.DataAccessException; import org.springframework.data.redis.connection.RedisConnection; import org.springframework.data.redis.core.RedisCallback; @@ -88,7 +88,7 @@ class RedisCache implements Cache { public ValueWrapper doInRedis(RedisConnection connection) throws DataAccessException { waitForLock(connection); byte[] bs = connection.get(computeKey(key)); - return (bs == null ? null : new ValueWrapperImpl(template.getValueSerializer().deserialize(bs))); + return (bs == null ? null : new SimpleValueWrapper(template.getValueSerializer().deserialize(bs))); } }, true); }