Skip to content

Commit 42e7b72

Browse files
committed
Use generic JacksonException with Jackson 3
Signed-off-by: Roy Clarkson <roy.clarkson@broadcom.com>
1 parent 7d7763f commit 42e7b72

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

spring-credhub-core/src/test/java/org/springframework/credhub/support/JsonTestUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import com.jayway.jsonpath.spi.json.JacksonJsonProvider;
2323
import com.jayway.jsonpath.spi.mapper.JacksonMappingProvider;
2424
import tools.jackson.core.JacksonException;
25-
import tools.jackson.core.exc.JacksonIOException;
2625
import tools.jackson.databind.json.JsonMapper;
2726

2827
import org.springframework.credhub.support.utils.JsonUtils;
@@ -50,7 +49,7 @@ public static <T> T fromJson(String json, Class<T> type) {
5049
JsonMapper mapper = JsonUtils.buildJsonMapper();
5150
return mapper.readValue(json, type);
5251
}
53-
catch (JacksonIOException ex) {
52+
catch (JacksonException ex) {
5453
fail("Error parsing JSON string to object: " + ex);
5554
throw new IllegalStateException(ex);
5655
}

0 commit comments

Comments
 (0)