Skip to content

Commit 3e6b52e

Browse files
author
Vitor Hugo Salgado
committed
refactor: remove auto module registration
BREAKING CHANGE: jackson modules will no longer be automatically registered
1 parent fff3c21 commit 3e6b52e

File tree

1 file changed

+1
-2
lines changed
  • puma4j-core/src/main/java/io/github/vitorsalgado/puma4j/core

1 file changed

+1
-2
lines changed

puma4j-core/src/main/java/io/github/vitorsalgado/puma4j/core/Puma4j.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ public final class Puma4j {
2828
Puma4j() {
2929
final Gson gson = new Gson();
3030
final ObjectMapper objectMapperForYaml =
31-
new ObjectMapper(new YAMLFactory()).findAndRegisterModules();
31+
new ObjectMapper(new YAMLFactory()).registerModule(new ParameterNamesModule());
3232
final ObjectMapper objectMapperForJson =
3333
JsonMapper
3434
.builder()
3535
.addModule(new ParameterNamesModule())
3636
.addModule(new Jdk8Module())
3737
.addModule(new JavaTimeModule())
38-
.findAndAddModules()
3938
.build();
4039

4140
this.jsonMarshaller = new JsonUnmarshaller(gson, objectMapperForJson);

0 commit comments

Comments
 (0)