From 32c5512dda52b4d3c57da4dc842f6021df230196 Mon Sep 17 00:00:00 2001 From: Christoph Strobl Date: Fri, 12 Feb 2016 09:50:18 +0100 Subject: [PATCH] DATAREDIS-461 - Deprecate support for org.codehaus.jackson based Serializers and Mappers. --- .../springframework/data/redis/hash/JacksonHashMapper.java | 4 +++- .../data/redis/serializer/JacksonJsonRedisSerializer.java | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/data/redis/hash/JacksonHashMapper.java b/src/main/java/org/springframework/data/redis/hash/JacksonHashMapper.java index ee62a4e6b..43294c875 100644 --- a/src/main/java/org/springframework/data/redis/hash/JacksonHashMapper.java +++ b/src/main/java/org/springframework/data/redis/hash/JacksonHashMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ import org.codehaus.jackson.type.JavaType; * @author Costin Leau * @author Thomas Darimont * @author Christoph Strobl + * @deprecated since 1.7. Will be removed in subsequent version. */ +@Deprecated public class JacksonHashMapper implements HashMapper { private final ObjectMapper mapper; diff --git a/src/main/java/org/springframework/data/redis/serializer/JacksonJsonRedisSerializer.java b/src/main/java/org/springframework/data/redis/serializer/JacksonJsonRedisSerializer.java index c34f78f4d..1953f9c7d 100644 --- a/src/main/java/org/springframework/data/redis/serializer/JacksonJsonRedisSerializer.java +++ b/src/main/java/org/springframework/data/redis/serializer/JacksonJsonRedisSerializer.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2014 the original author or authors. + * Copyright 2011-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,10 @@ import org.springframework.util.Assert; * * @author Costin Leau * @author Thomas Darimont + * @author Christoph Strobl + * @deprecated ince 1.7. Will be removed in subsequent version. */ +@Deprecated public class JacksonJsonRedisSerializer implements RedisSerializer { public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");