Skip to content

Commit

Permalink
Fix: Add missing @OverRide annotation to useForType
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kimjinmyeong committed Nov 26, 2024
1 parent 1ceb7ed commit 0881363
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 0881363

Please sign in to comment.