# TODO

## Codebase Analysis & Fixes
- [x] Run full analysis (bugs, code reuse, unit test gaps, other issues) across dhl-api
- [x] Created branch fix/code-review-findings
- [x] Fix ShipmentEvent.getDate() timezone-offset parsing bug (was always returning null)
- [x] Remove spurious Thread.sleep(5000) on the success path in TrackingService
- [x] Stop swallowing exceptions/returning null in TrackingService.track(...) — now propagates IOException
- [x] Fix BaseService.debug() to always set method/url and close HTTP responses properly (try-with-resources)
- [x] Fix resource leak in BaseService.getResult() (try-with-resources on BufferedReader)
- [x] Rename shadowed `URI` field in TrackingService to `trackingUrl`
- [x] Extract buildUri() helper to deduplicate URI-building logic
- [x] Merge unknownResponse/errorResponse into single withError() helper, fix "unkown" typo
- [x] Introduce @JsonModel meta-annotation to remove duplicated Jackson annotations across ~17 model classes
- [x] Remove unused Debug.request field
- [x] Bump httpclient 4.5.8 -> 4.5.14, jackson-databind 2.9.9 -> 2.17.2 (CVE fixes)
- [x] Add Mockito test dependency (5.14.2, JDK21-compatible) and tests for TrackingService, ShipmentEvent, DhlEnvironment
- [x] All 11 tests passing, clean build verified (mvn clean install)
--> Present summary to user for review

## Notes
- Project: small Java/Maven library, DHL tracking API client
- Branch: fix/code-review-findings (not yet merged/pushed — awaiting user review)
