跨境电商
「开源资讯」Guava 28.2 发布,Google 的 Java 核心工具库
2022-07-29 21:30  浏览:429
前言

guava 28.2 发布了,Guava 是 Google 的一个开源项目,包含许多 Google 核心 Java 常用库,如:集合 [collections] 、缓存 [caching] 、原生类型支持 [primitives support] 、并发库 [concurrency libraries] 、通用注解 [common annotations] 、字符串处理 [string processing] 与 I/O 等。

Guava 28.2更新内容
  • 对 GWT-RPC 用户的警告:2020 年的第一个 Guava 版本将删除对 GWT 序列化 Guava 类型的支持
  • base:添加了 Splitter.splitToStream()
  • 并发:添加了 Futures.submit()
  • 并发:使 platformThreadFactory() 和相关实用程序(主要是 *Service)在 Java 11 App Engine 下工作,并调整了其他 App Engine 线程行为
  • 并发:向 AbstractFuture.toString 中的 StackOverflowError 添加了 catch
  • 并发:通过 GWT/j2cl 中的默认接口方法使 ListenableFuture 实现 thenable
  • 图表:修复了 Abstractnetwork.hasEdgeConnecting() 中的错误,如果其中任一端点不在图中,则引发该错误
  • math:向 Stats 和 StatsAccumulator 添加了 Stream 支持
  • math:添加了 Quantiles compute() 方法
  • net:添加了对 IPv6 地址范围 ID 的支持
  • net:添加到 BigInteger 和 fromIpv4BigInteger/fromIpv6BigInteger 到 InetAddresses
  • net:添加了 application/opensearchdescription+xml 和 MPEG-DASH 的 MediaType 常量,以及标头 Cross-Origin-Opener-Policy 的常量
  • net:使 MediaType 拒绝空类型、子类型和属性以及非 ASCII 参数值;此外,还可以将空参数值序列化为带引号的字符串
  • 将 @DonotMock 添加到几种类型
  • 删除了对 animal-sniffer-annotations 的依赖
  • Maven

    <dependency>

      <groupId>com.google.guava</groupId>

      <artifactId>guava</artifactId>

      <version>28.2-jre</version>

      <!-- or, for Android: -->

      <version>28.2-android</version>

    </dependency>

    更新说明:https://github.com/google/guava/releases/tag/v28.2

    发表评论
    0评