Skip to content

Commit

Permalink
Add missing @Override annotation to `GenericJackson2JsonRedisSerial…
Browse files Browse the repository at this point in the history
…izer.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
  • Loading branch information
kimjinmyeong authored and mp911de committed Jan 15, 2025
1 parent 904968d commit 5166f4c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 5166f4c

Please sign in to comment.