Skip to content

Commit d75df92

Browse files
bezzang-devmp911de
authored andcommitted
Add missing @Override annotation to GenericJackson2JsonRedisSerializer.useForType.
This fixes an issue where the `useForType` method in GenericJackson2JsonRedisSerializer did not have the `@Override` annotation, making it less clear that it overrides a method from DefaultTypeResolverBuilder. Closes #3053 Original pull request: #3058
1 parent 4a1291f commit d75df92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/springframework/data/redis/serializer/GenericJackson2JsonRedisSerializer.java

+1
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ public ObjectMapper.DefaultTypeResolverBuilder withDefaultImpl(Class<?> defaultI
636636
* Boolean, Integer, Double) will never use typing; that is both due to them being concrete and final, and since
637637
* actual serializers and deserializers will also ignore any attempts to enforce typing.
638638
*/
639+
@Override
639640
public boolean useForType(JavaType javaType) {
640641

641642
if (javaType.isJavaLangObject()) {

0 commit comments

Comments
 (0)