We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fff3c21 commit 3e6b52eCopy full SHA for 3e6b52e
puma4j-core/src/main/java/io/github/vitorsalgado/puma4j/core/Puma4j.java
@@ -28,14 +28,13 @@ public final class Puma4j {
28
Puma4j() {
29
final Gson gson = new Gson();
30
final ObjectMapper objectMapperForYaml =
31
- new ObjectMapper(new YAMLFactory()).findAndRegisterModules();
+ new ObjectMapper(new YAMLFactory()).registerModule(new ParameterNamesModule());
32
final ObjectMapper objectMapperForJson =
33
JsonMapper
34
.builder()
35
.addModule(new ParameterNamesModule())
36
.addModule(new Jdk8Module())
37
.addModule(new JavaTimeModule())
38
- .findAndAddModules()
39
.build();
40
41
this.jsonMarshaller = new JsonUnmarshaller(gson, objectMapperForJson);
0 commit comments