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
This commit is contained in:
kimjinmyeong
2024-11-26 22:49:20 +09:00
committed by Mark Paluch
parent 904968de00
commit 5166f4c435

View File

@@ -636,6 +636,7 @@ public class GenericJackson2JsonRedisSerializer implements RedisSerializer<Objec
* 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()) {