6 小时前

util 发布版本: Util 18.6.0

API Changes ========= * util-app: Allow users a way to override the argument parsing behavior in `c.t.app.App#nonExitingMain` which was inlined. Users can override `parseArgs` to define custom behavior. [cf7860e5](https://github.com/twitter/util/commit/cf7860e5c2037a496b596e1688bf5873875e3018) * util-core: Removed `c.t.u.NonFatal`, use `scala.util.control.NonFatal` instead. [57533b34](https://github.com/twitter/util/commit/57533b3473b50e944ae0ee9ff3375e9c2abc67b3) * util-class-preloader: This library has been removed since it deprecated. We no longer recommend that people do this. [af41e634](https://github.com/twitter/util/commit/af41e6343e46a1639e40d872102c6bc2e22d391a) Bug Fixes ======= * util-app: Fix issue where in some environments, `URLClassLoader#getURLs` can return null, failing LoadService from initializing properly (see: https://github.com/google/guava/issues/2239). The `URLClassLoader` javadoc is not clear if a null can be returned when calling `URLClassLoader#getURLs` and for at least one application server, the default returned is null, thus we should be more resilient against this possibility. Fixes Finagle #695. [3adca94a](https://github.com/twitter/util/commit/3adca94a9e2b21a702aad619902ce5ef2e29de65) Deprecations ========== * util-reflect: This library has been deprecated since it is legacy code and shouldn't be used for new services. We no longer think this facility is the right way to do it and encourage you to provide your own forwarders. [af41e634](https://github.com/twitter/util/commit/af41e6343e46a1639e40d872102c6bc2e22d391a) New Features ========== * util-app: added #suppressGracefulShutdownErrors method to optionally suppress exceptions during graceful shutdown from bubbling up. [ab261b26](https://github.com/twitter/util/commit/ab261b2693083118fe39ad7147b7587630dfa981)