Skip to content

Commit

Permalink
bumped versions in pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
ml054 committed Mar 11, 2024
1 parent e82c24d commit 5401797
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;

/**
Expand All @@ -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
Expand Down

0 comments on commit 5401797

Please sign in to comment.