内容简介:Lombok 1.6.20 已发布,该版本在新的 IntelliJ、Netbeans 和 Gradle 中将更好的支持 jdk9,此外还包括重大的变更和 bug 修复。 具体更新如下: PLATFORM: Better support for jdk9 in the new IntelliJ, Netbean...
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.addJavaxGeneratedAnnotationnow defaults tofalseinstead of true. Oracle broke this annotation with the release of JDK9, necessitating this breaking change.BREAKING CHANGE: lombok config key
lombok.anyConstructor.suppressConstructorPropertiesis now deprecated and defaults totrue, that is, by default lombok no longer automatically generates@ConstructorPropertiesannotations. New config keylombok.anyConstructor.addConstructorPropertiesnow exists; set it totrueif 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 #1505BUGFIX:
delombokno longer prints the synthetic outer-class parameter. Issue #1521BUGFIX: @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.iniand friends, instead of a relative path. If you want the old behavior, you can usejava -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 的大量时间。
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
小团队构建大网站:中小研发团队架构实践
张辉清 等 / 电子工业出版社 / 2019-1 / 69
《小团队构建大网站:中小研发团队架构实践》结合作者近几年的工作经验,总结了一套可直接落地、基于开源、成本低、可快速搭建的中小研发团队架构实践方法。《小团队构建大网站:中小研发团队架构实践》共5篇22章,开篇是本书的导读;架构篇是设计思想的提升,包括企业总体架构、应用架构设计、统一应用分层等;框架篇主讲中间件和工具的使用,包括消息队列、缓存、Job、集中式日志、应用监控和微服务等;公共应用篇是技术与......一起来看看 《小团队构建大网站:中小研发团队架构实践》 这本书的介绍吧!