From 5401797258e0cd2777966fbe1a0122d627fea7c5 Mon Sep 17 00:00:00 2001 From: Marcin Lewandowski Date: Mon, 11 Mar 2024 10:34:06 +0100 Subject: [PATCH] bumped versions in pom.xml --- .../SharpAwareJacksonAnnotationIntrospector.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/ravendb/client/primitives/SharpAwareJacksonAnnotationIntrospector.java b/src/main/java/net/ravendb/client/primitives/SharpAwareJacksonAnnotationIntrospector.java index dc64805b3..eae063eac 100644 --- a/src/main/java/net/ravendb/client/primitives/SharpAwareJacksonAnnotationIntrospector.java +++ b/src/main/java/net/ravendb/client/primitives/SharpAwareJacksonAnnotationIntrospector.java @@ -1,6 +1,8 @@ package net.ravendb.client.primitives; import com.fasterxml.jackson.core.Version; +import com.fasterxml.jackson.databind.cfg.MapperConfig; +import com.fasterxml.jackson.databind.introspect.AnnotatedClass; import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector; /** @@ -10,13 +12,13 @@ */ public class SharpAwareJacksonAnnotationIntrospector extends JacksonAnnotationIntrospector { - @Override - public String[] findEnumValues(Class enumType, Enum[] enumValues, String[] names) { - if (enumType.getAnnotation(UseSharpEnum.class) != null) { + public String[] findEnumValues(MapperConfig config, AnnotatedClass annotatedClass, Enum[] enumValues, String[] names) { + if (annotatedClass.getAnnotation(UseSharpEnum.class) != null) { return SharpEnum.values(enumValues); } - return super.findEnumValues(enumType, enumValues, names); + + return super.findEnumValues(config, annotatedClass, enumValues, names); } @Override