Skip to content

Util 22.12.0

Latest
Compare
Choose a tag to compare
@finaglehelper finaglehelper released this 26 Dec 14:38
· 29 commits to develop since this release

22.12.0

New Features

  • util-core: Introduce Future.fromCompletableFuture PHAB_ID=D940686
  • util-core: Introduce Time.fromInstant e9d1bc9e
  • util-core: Introduce TimeFormatter, a replacement for TimeFormat. TimeFormatter uses
    the modern java.time.format.DateTimeFormatter API instead of the java.text.SimpleDateFormat
    with the main advantage being that it doesn't require synchronization on either formatting or
    parsing, and is thus more performant and causes no contention. e9d1bc9e
  • util-stats: MetricBuilder now has API to configure a format in which histograms are exported.
    Use .withHistogramFormat to access it. PHAB_ID=D908189

Deprecations

  • util-core: TimeFormat, as well as the Time.format methods are deprecated in favor of using
    TimeFormatter. e9d1bc9e

Runtime Behavior Changes

  • util: Bump version of Jackson to 2.14.1. 1a6ff676
  • util-core: Time.at, Time.toString, and Time.fromRss now use TimeFormatter internally and
    thus have better performance and do not cause contention through synchronization. toString always
    uses TimeFormatter while at and fromRss only use it when run with Java 9 or later due to a
    compatibility bug in Java 1.8. e9d1bc9e