- PLATFORM: Support for JDK13 (including yieldin switch expressions, as well as delombok having a nicer style for arrow-style switch blocks, and text blocks).
- PLATFORM: Support for JDK14 (including pattern matchinstanceof expressions).
- FEATURE: In lombok.configit is possible to import other config files, even from a.zipor.jar.
- FEATURE: You can now configure a builder's 'setter' prefixes via @Builder(setterPrefix = "set")for example. We discourage doing this, but if some library you use requires them, have at it. Pull Request #2174, or alternatively via a parameter on@Singular, you can choose to ignore such a call (add nothing, return immediately); this can be useful when deserializing (e.g. Jackson JSON) and JPA/Hibernate code. .
- FEATURE: Tired of being unable to use @javax.annotation.ParametersAreNonnullByDefaultor@org.eclipse.jdt.annotation.NonNullByDefaultbecause then the equals method that lombok generates isn't valid? Fret no more; lombok can now add nullity annotations where relevant. Set the flavour of nullity annotation you prefer in yourlombok.config. Applies to the return value oftoString,withX, chainablesetX, static constructors,build,builder, etcetera, and the parameter ofequals,canEqual, and the plural form of@Singularmarked fields for builder classes.
- BUGFIX: If using the sonarlint plugin in eclipse for projects bound to sonarcloud, you now no longer get internal errors on sonarlint processing.
- BUGFIX: lombok.experimental.Witherhas been deprecated (it has been renamed tolombok.With). However, the intent is that lombok still handles the old annotation in case you haven't updated your lombok dep yet. However, only a star import onlombok.experimental.*worked; an explicit one would cause lombok to not generate any with method.
- BUGFIX: Referring to an inner class inside the generics on a class marked with @SuperBuilderwould cause the errorwrong number of type arguments; required 3; fixed by github user@Lekanich- thank you!
- BUGFIX: Some of the code generated by @Builderdid not includethis.prefixes when accessing fields. While semantically it didn't matter, if you use the 'add this prefix for field accesses' save action in eclipse, the save action would break.
- BUGFIX: When lombok copies javadoc from fields to relevant methods, it should generate an appropriate @return thisline if lombok copies the javadoc to a generated setter that is chainable (returns itself). It didn't do that when generating the 'setters' in a@Builder. Lombok also didn't generate an appropriate@returnitem for@Withmethods. The javadoc has also been updated slightly (thethisreference in the javadoc is now rendered in a code tag).
- IMPROBABLE BREAKING CHANGE: Lombok now generates qualified types (so, Outer.Innerinstead of justInner) in most type signatures that it generates; this should avoid exotic scenarios where the types lombok puts in signatures end up referring to unintended other types, which can occur if your class implements an interface that itself defines a type with the same name as one defined in your source file. I told you it was exotic. Thanks to Hunter Anderson for doing some preliminary work on this change.
- IMPROBABLE BREAKING CHANGE: Running java -jar lombok.jar config -v <files>no longer shows which files do not mention the specified keys. Use--non-mentionedor-nto show them anyway.