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

栏目: Java · 发布时间: 7年前

内容简介:Lombok 1.18.4 发布,更新:

Lombok 1.18.4 发布,更新:

  • PLATFORM: Support for Eclipse Photon. Issue #1831

  • PLATFORM: Angular IDE is now recognized by the installer Issue #1830

  • PLATFORM: Many improvements for lombok's JDK10/11 support.

  • BREAKING CHANGE: The @FieldNameConstants feature has been completely redesigned.  Issue #1774 FieldNameConstants documentation

  • BREAKING CHANGE: Lombok will now always copy specific annotations around (from field to getter, from field to builder 'setter', etcetera): A specific curated list of known annotations where that is the right thing to do (generally, @NonNull style annotations from various libraries), as well as any annotations you explicitly list in the  lombok.copyableAnnotations config key in your  lombok.config file. Also, lombok is more consistent about copying these annotations. (Previous behaviour: Lombok used to copy any annotation whose simple name was  NonNullNullable , or  CheckForNull ).  Issue #1570 and  Issue #1634

  • FEATURE: Lombok's @NonNull annotation can now be used on type usages (annotation on type usages has been introduced in JDK 8).  @Builder 's  @Singular annotation now properly deals with annotations on the generics type on the collection:  @Singular List<@NonNull String> names; now does the right thing.

  • FEATURE: You can now mix @SuperBuilder and  toBuilder , and  toBuilder no longer throws  NullPointerException if a  @Singular -marked collection field is  nullIssue #1324

  • FEATURE: delombok now supports module paths via the --module-path option, and will automatically add lombok itself to the module path. This should make it possible to delombok your modularized projects.  Issue #1848

  • FEATURE: You can pass @args.txt to  delombok to read args from the text file; useful if you have really long classpaths you need to pass to delombok.  Issue #1795

  • BUGFIX: @NoArgsConstructor(force=true) would try to initialize already initialized final fields in Eclipse.  Issue #1829

  • BUGFIX: When using lombok to compile modularized ( module-info.java -style) code, if the module name has dots in it, it wouldn't work.  Issue #1808

  • BUGFIX: Errors about lombok not reading a module providing org.mapstruct.ap.spi when trying to use lombok in jigsaw-mode on JDK 11.  Issue #1806

  • BUGFIX: Fix NetBeans compile on save. Issue #1770

  • BUGFIX: If you manually write your builder class so you can add a few methods of your own, and those methods refer to generated methods, you'd usually run into various bizarre error messages, but only on JDK9/10/11. This one is hard to describe, but we fixed it. Issue #1907

更新日志


以上所述就是小编给大家介绍的《Lombok 1.18.4 发布,消除冗长的 Java 代码》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

算法分析导论(第2版)(英文版)

算法分析导论(第2版)(英文版)

[美]Robert Sedgewick(罗伯特•塞奇威克)、[美]Philippe Flajolet(菲利普•弗拉若莱) / 电子工业出版社 / 2015-6 / 128.00元

《算法分析导论(第2版)(英文版)》全面介绍了算法的数学分析中所涉及的主要技术。涵盖的内容来自经典的数学课题(包括离散数学、初等实分析、组合数学),以及经典的计算机科学课题(包括算法和数据结构)。《算法分析导论(第2版)(英文版)》的重点是“平均情况”或“概率性”分析,书中也论述了“最差情况”或“复杂性”分析所需的基本数学工具。 《算法分析导论(第2版)(英文版)》第 1 版为行业内的经典著......一起来看看 《算法分析导论(第2版)(英文版)》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具