Fix Jackson version conflict and token-expiry edge case
pom.xml pinned jackson-databind to 2.9.9, which Maven's nearest-wins
mediation preferred over the 2.13.0 jackson-core/databind that
json-utils's bundled CSV/YAML/TOML/XML modules actually require. That
mismatch caused JsonUtils's static initializer to throw
NoClassDefFoundError (missing TSFBuilder, added in jackson-core 2.10)
on certain build/cache states, cascading into every test that touches
JsonUtils. Bumped jackson-databind to 2.13.0 to match.

Also fixes a token-cache edge case in FedexApi: the expiry check used
a strict isAfter(), so a token with expiresIn <= the refresh buffer
(ttl rounds to 0) could be treated as still valid on an immediate
follow-up call, intermittently skipping the refresh.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7530d3d commit af0000c69a8dba6ed6067b4c6eef598666cfdf9a
@Your Name Your Name authored on 18 Jun
Showing 2 changed files
View
pom.xml
View
src/main/java/io/ljunggren/fedex/api/FedexApi.java