Skip to content

Commit

Permalink
yoj-json-jackson-v2: Make `JacksonJsonConverter.createDefaultObjectMa…
Browse files Browse the repository at this point in the history
…pper()`` public

...to potentially share YOJ's recommended `ObjectMapper` with other code in users' applications
  • Loading branch information
nvamelichev committed Feb 15, 2024
1 parent c0e80c7 commit dffa13b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ public String toString() {
return "JacksonJsonConverter";
}

private static ObjectMapper createDefaultObjectMapper() {
/**
* @return {@code ObjectMapper} with reasonable defaults for mapping between Java objects and JSON
*/
public static ObjectMapper createDefaultObjectMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.setTimeZone(TimeZone.getDefault());
mapper.registerModule(new Jdk8Module());
Expand Down

0 comments on commit dffa13b

Please sign in to comment.