|
15 | 15 | */ |
16 | 16 | package io.github.easy4j.claudecode; |
17 | 17 |
|
18 | | -import com.fasterxml.jackson.databind.DeserializationFeature; |
19 | | -import com.fasterxml.jackson.databind.ObjectMapper; |
| 18 | +import tools.jackson.databind.DeserializationFeature; |
| 19 | +import tools.jackson.databind.ObjectMapper; |
| 20 | +import tools.jackson.databind.json.JsonMapper; |
20 | 21 | import io.github.easy4j.claudecode.cli.ClaudeCodeCli; |
21 | 22 | import io.github.easy4j.claudecode.cli.ClaudeCodeCliExecutor; |
22 | 23 | import io.github.easy4j.claudecode.cli.ClaudeCodeCliResult; |
23 | 24 | import io.github.easy4j.claudecode.model.ClaudeAgent; |
24 | 25 | import io.github.easy4j.claudecode.model.ClaudeMessage; |
25 | 26 | import io.github.easy4j.claudecode.model.ClaudeResult; |
26 | | -import com.fasterxml.jackson.core.type.TypeReference; |
| 27 | +import tools.jackson.core.type.TypeReference; |
27 | 28 | import org.slf4j.Logger; |
28 | 29 | import org.slf4j.LoggerFactory; |
29 | 30 |
|
@@ -84,8 +85,7 @@ public class ClaudeCodeClient implements AutoCloseable { |
84 | 85 | * This is the same mapper used for parsing both {@code stream-json} |
85 | 86 | * payloads and the {@code claude agents --json} response. |
86 | 87 | */ |
87 | | - private static final ObjectMapper MAPPER = new ObjectMapper() |
88 | | - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); |
| 88 | + private static final ObjectMapper MAPPER = JsonMapper.builder().disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES).build(); |
89 | 89 |
|
90 | 90 | private final ClaudeCodeClientConfig config; |
91 | 91 | private final ClaudeCodeCli cli; |
|
0 commit comments