Skip to content

Commit 525f9b6

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 cd1f6ce commit 525f9b6

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
@@ -589,6 +589,7 @@ public ObjectMapper.DefaultTypeResolverBuilder withDefaultImpl(Class<?> defaultI
589589
* Boolean, Integer, Double) will never use typing; that is both due to them being concrete and final, and since
590590
* actual serializers and deserializers will also ignore any attempts to enforce typing.
591591
*/
592+
@Override
592593
public boolean useForType(JavaType javaType) {
593594

594595
if (javaType.isJavaLangObject()) {

0 commit comments

Comments
 (0)