Commit 9e08655
Switch json-io stream deser to JsonIo.toMaps() (toObjects deprecated)
JsonIo.toObjects(InputStream, ReadOptions, Class) is deprecated as of
json-io 4.101.0+ (will be removed in 5.0.0). The clean substitute is
JsonIo.toMaps(InputStream).asClass(JsonObject.class), which routes
through the same MapResolver path and manages Maps-mode options
internally via its own cache (no need to pass options).
The result is materialized as JsonObject so the round-trip verification
in JsonBenchmark.test() recognizes it (instanceof JsonObject branch
re-serializes via WriteOptionsBuilder().standardJson().build() before
parity-checking against Jackson's Users/Clients POJOs).
Removed the now-unused jsonioReadOptionsMaps() method (and its cached
field) from JsonProvider, UsersJsonProvider, and ClientsJsonProvider --
the provider is the harness's "cache library config once" pattern, and
toMaps() handles its own caching.
Files:
- stream/Deserialization.java: switch to JsonIo.toMaps().asClass(JsonObject.class)
- provider/JsonProvider.java: drop jsonioReadOptionsMaps() declaration
- provider/UsersJsonProvider.java: drop the field + override
- provider/ClientsJsonProvider.java: drop the field + override
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent da5ece4 commit 9e08655
4 files changed
Lines changed: 15 additions & 29 deletions
File tree
- src/main/java/com/github/fabienrenaud/jjb
- provider
- stream
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
169 | | - | |
170 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
171 | 170 | | |
172 | | - | |
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
| |||
305 | 303 | | |
306 | 304 | | |
307 | 305 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | 306 | | |
314 | 307 | | |
315 | 308 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
70 | | - | |
71 | 68 | | |
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | | - | |
66 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
67 | 66 | | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | 202 | | |
210 | 203 | | |
211 | 204 | | |
| |||
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
0 commit comments