Newer
Older
dhl-api / TODO.md

TODO

Codebase Analysis & Fixes

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