Skip to content

Commit 0b5130e

Browse files
fix: remove Jdk8Module Jackson module registration (#574)
Since the project now runs on java >= 11 and uses the latest jackson version, it is no longer necessary to register this module because it is included in jackson-databind. Refs: #570
1 parent 2d5089e commit 0b5130e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

graphql-java-kickstart/src/main/java/graphql/kickstart/execution/error/DefaultGraphQLServletObjectMapperConfigurer.java

-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import com.fasterxml.jackson.annotation.JsonInclude;
44
import com.fasterxml.jackson.databind.ObjectMapper;
55
import com.fasterxml.jackson.databind.SerializationFeature;
6-
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
76
import graphql.kickstart.execution.config.GraphQLServletObjectMapperConfigurer;
87

98
/** @author Andrew Potter */
@@ -12,9 +11,7 @@ public class DefaultGraphQLServletObjectMapperConfigurer
1211

1312
@Override
1413
public void configure(ObjectMapper mapper) {
15-
// default configuration for GraphQL Java Servlet
1614
mapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
17-
mapper.registerModule(new Jdk8Module());
1815
mapper.setDefaultPropertyInclusion(JsonInclude.Include.ALWAYS);
1916
}
2017
}

0 commit comments

Comments
 (0)