内容简介:Lombok 1.16.22 发布了,更新内容如下: FEATURE: Private no-args constructor for @Data and @Value to enable deserialization frameworks (like Jackson) to operate out-of-the-box. Use lombok.noArgs...
Lombok 1.16.22 发布了,更新内容如下:
FEATURE: Private no-args constructor for
@Data
and@Value
to enable deserialization frameworks (like Jackson) to operate out-of-the-box. Uselombok.noArgsConstructor.extraPrivate = false
to disable this behavior.FEATURE: Methods can now be marked for inclusion in
toString
,equals
, andhashCode
generation. There is a new mechanism to mark which fields (and now, methods) are to be included or excluded for the generation of these methods: mark the relevant member with for example@ToString.Include
or@EqualsAndHashCode.Exclude
. ToString documentation EqualsAndHashCode documentationFEATURE:
@Getter
and@Setter
also allowonMethod
andonParam
when put on a type. Issue #1653FEATURE:
@FieldNameConstants
is a new feature that generates string constants for your field names. Docs on @FieldNameConstants.PLATFORM: Lombok can be compiled on JDK10, and should run on JDK10. Issue #1693
PLATFORM: lombok now counts as an incremental annotation processor for gradle. Should speed up your gradle builds considerably! Issue #1580
PLATFORM: Fix for using lombok together with JDK9+'s new
module-info.java
feature. Issue #985BUGFIX: Solved some issues in eclipse that resulted in error 'A save participant caused problems'. Issue #879
BUGFIX: Netbeans on jdk9. Issue #1617
BUGFIX: Netbeans < 9. Issue #1555
PROMOTION:
var
has been promoted from experimental to the main package with no changes. The 'old' experimental one is still around but is deprecated, and is an alias for the new main package one. var documentation.OLD-CRUFT:
lombok.experimental.Builder
andlombok.experimental.Value
are deprecated remnants of when these features were still in experimental. They are now removed entirely. If your project is dependent on an older version of lombok which still has those; fret not, lombok still processes these annotations. It just no longer includes them in the jar.
详情见更新日志。
下载地址:
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- Java Workload Scheduler 样板:与 Bluemix 上的 Java Cloudant 样板的一种集成
- ddd-lite-codegen 样板代码终结者
- 生鲜新物种T11联姻特斯联,打造“智慧零售”新样板
- 12000家新华书店的智慧样板间亮相!竟有这些黑科技
- Swift语法快速入门(一)之 Swift基础语法
- 在ES6中使用扩展语法有什么好处?它与rest语法有什么不同?
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
The Pragmatic Programmer
Andrew Hunt、David Thomas / Addison-Wesley Professional / 1999-10-30 / USD 49.99
本书直击编程陈地,穿过了软件开发中日益增长的规范和技术藩篱,对核心过程进行了审视――即根据需求,创建用户乐于接受的、可工作和易维护的代码。本书包含的内容从个人责任到职业发展,直至保持代码灵活和易于改编重用的架构技术。从本书中将学到防止软件变质、消除复制知识的陷阱、编写灵活、动态和易适应的代码、避免出现相同的设计、用契约、断言和异常对代码进行防护等内容。一起来看看 《The Pragmatic Programmer》 这本书的介绍吧!