From 0881363e551762d66086ee8798485881a5f4e2c8 Mon Sep 17 00:00:00 2001 From: kimjinmyeong Date: Tue, 26 Nov 2024 22:49:20 +0900 Subject: [PATCH] Fix: Add missing @Override annotation to 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. --- .../redis/serializer/GenericJackson2JsonRedisSerializer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/springframework/data/redis/serializer/GenericJackson2JsonRedisSerializer.java b/src/main/java/org/springframework/data/redis/serializer/GenericJackson2JsonRedisSerializer.java index f989e27802..1226992427 100644 --- a/src/main/java/org/springframework/data/redis/serializer/GenericJackson2JsonRedisSerializer.java +++ b/src/main/java/org/springframework/data/redis/serializer/GenericJackson2JsonRedisSerializer.java @@ -636,6 +636,7 @@ public ObjectMapper.DefaultTypeResolverBuilder withDefaultImpl(Class defaultI * Boolean, Integer, Double) will never use typing; that is both due to them being concrete and final, and since * actual serializers and deserializers will also ignore any attempts to enforce typing. */ + @Override public boolean useForType(JavaType javaType) { if (javaType.isJavaLangObject()) {