Skip to content

Commit 0881363

Browse files
committed
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.
1 parent 1ceb7ed commit 0881363

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

Lines changed: 1 addition & 0 deletions
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)