Skip to content

Commit

Permalink
Add the setObjectMapper method to the ObjectMapperWrapper class #304
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Dec 28, 2022
1 parent f05fc75 commit 8854667
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public ObjectMapper getObjectMapper() {
return objectMapper;
}

public void setObjectMapper(ObjectMapper objectMapper) {
this.objectMapper = objectMapper;
}

public <T> T fromString(String string, Class<T> clazz) {
try {
return getObjectMapper().readValue(string, clazz);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public ObjectMapper getObjectMapper() {
return objectMapper;
}

public void setObjectMapper(ObjectMapper objectMapper) {
this.objectMapper = objectMapper;
}

public <T> T fromString(String string, Class<T> clazz) {
try {
return getObjectMapper().readValue(string, clazz);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public ObjectMapper getObjectMapper() {
return objectMapper;
}

public void setObjectMapper(ObjectMapper objectMapper) {
this.objectMapper = objectMapper;
}

public <T> T fromString(String string, Class<T> clazz) {
try {
return getObjectMapper().readValue(string, clazz);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public ObjectMapper getObjectMapper() {
return objectMapper;
}

public void setObjectMapper(ObjectMapper objectMapper) {
this.objectMapper = objectMapper;
}

public <T> T fromString(String string, Class<T> clazz) {
try {
return getObjectMapper().readValue(string, clazz);
Expand Down

0 comments on commit 8854667

Please sign in to comment.