1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Lombok 1.6.20 发布,消除冗长的 Java 代码 下载

本帖由 漂亮的石头2018-01-10 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    488,109
    赞:
    47
    Lombok 1.6.20 已发布,该版本在新的 IntelliJ、Netbeans 和 Gradle 中将更好的支持 jdk9,此外还包括重大的变更和 bug 修复。

    具体更新如下:


    • PLATFORM: Better support for jdk9 in the new IntelliJ, Netbeans and for Gradle.


    • BREAKING CHANGE: lombok config key lombok.addJavaxGeneratedAnnotation now defaults to false instead of true. Oracle broke this annotation with the release of JDK9, necessitating this breaking change.


    • BREAKING CHANGE: lombok config key lombok.anyConstructor.suppressConstructorProperties is now deprecated and defaults to true, that is, by default lombok no longer automatically generates @ConstructorProperties annotations. New config key lombok.anyConstructor.addConstructorProperties now exists; set it to true if you want the old behavior. Oracle more or less broke this annotation with the release of JDK9, necessitating this breaking change.


    • DEVELOPMENT: Compiling lombok on JDK1.9 is now possible.


    • BUGFIX: The generated hashCode would break the contract if callSuper=true,of={}. Issue #1505


    • BUGFIX: delombok no longer prints the synthetic outer-class parameter. Issue #1521


    • BUGFIX: @Builder.Default now also works when type parameters are present. Issue #1527


    • BUGFIX: @Builder now also works on method with a generified return type. Issue #1420


    • INSTALLER: By default, the lombok installer now inserts an absolute path in eclipse.ini and friends, instead of a relative path. If you want the old behavior, you can use java -jar -Dlombok.installer.fullpath=false lombok.jar.

    点此查看完整更新日志

    截止发稿时,留意到官方又发布了一个新版本 v1.16.21 "Edgy Guinea Pig",有如下的更新说明:


    • v1.16.20 是 Lombok 项目的最新稳定版本


    • 对 Netbeans < 9 的情况的潜在修复 Issue #1555

    下载地址


    Lombok 是一个 Java 实用工具,可用来帮助开发人员消除 Java 的冗长,尤其是对于简单的 Java 对象(POJO)。它通过注释实现这一目的。通过在开发环境中实现 Lombok,开发人员可以节省构建诸如 hashCode() 和 equals() 这样的方法以及以往用来分类各种 accessor 和 mutator 的大量时间。
    Lombok 1.6.20 发布,消除冗长的 Java 代码下载地址
     
正在加载...