Lombok 1.18.2 发布,消除冗长的 Java 代码

栏目: 软件资讯 · 发布时间: 7年前

内容简介:Lombok 1.18.2 已发布。下载地址 >>> https://projectlombok.org/download 该版本包含 bug 修复和新增功能特性。具体如下: BUGFIX: mapstruct + lombok in eclipse should hopefully work again. Issue #1359...

Lombok 1.18.2 已发布。下载地址 >>> https://projectlombok.org/download

该版本包含 bug 修复和新增功能特性。具体如下:

  • BUGFIX: mapstruct + lombok in eclipse should hopefully work again. Issue #1359 and mapstruct issue #1159

  • BUGFIX: Equals and hashCode again exclude transient fields by default. Issue #1724

  • BUGFIX: Eclipse 'organize imports' feature (either explicitly, or if automatically triggered on saving via 'save actions') would remove the import for lombok.varIssue #1783

  • BUGFIX: Lombok and gradle v4.9 didn't work together; that's been fixed. Issue #1716 and gradle-apt-plugin issue #87

  • FEATURE: You can now make builders for type hierarchies, using the new (experimental) @SuperBuilderannotation. Thanks for the contribution, Jan Rieke. @SuperBuilder documentation

  • FEATURE: @NoArgsConstructor, including forcing one with lombok.config: lombok.noArgsConstructor.extraPrivate=true now take any defaults set with @Builder.Default into account. Issue #1347

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


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Beginning XML with DOM and Ajax

Beginning XML with DOM and Ajax

Sas Jacobs / Apress / 2006-06-05 / USD 39.99

Don't waste time on 1,000-page tomes full of syntax; this book is all you need to get ahead in XML development. Renowned web developer Sas Jacobs presents an essential guide to XML. Beginning XML with......一起来看看 《Beginning XML with DOM and Ajax》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

html转js在线工具
html转js在线工具

html转js在线工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试