Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Releases: inferred/FreeBuilder

v1.15.0

24 Dec 12:00
8843668
Compare
Choose a tag to compare

v1.14.9

28 Mar 13:45
c9def25
Compare
Choose a tag to compare

This release adds support for @JacksonXmlProperty (#294). Thanks to @sdqali for the patch!

Thanks also go out to JFrog BinTray: this is our first release to go via their site after the gradle-nexus-staging-plugin stopped working.

v1.14.8

06 Feb 21:46
c247b0b
Compare
Choose a tag to compare

This release fixes an issue where declaring both a static builder() method and an abstract toBuilder() methods in your class would cause FreeBuilder to generate a Partial whose toBuilder method just throws UnsupportedOperationException. If your Builder's constructor method is at least package-protected, the implementation code will now be correctly generated; if it is private or there is none declared at all, FreeBuilder will issue an error at compile time rather than generating invalid code. (#264)

v1.14.7

05 Feb 20:02
4756d14
Compare
Choose a tag to compare

Builders now reuse nested built instances where possible, reducing the memory overhead of the modify-rebuild pattern, and keeping the same instance when setX is the only method called (issue #270).

v1.14.6

05 Oct 10:07
Compare
Choose a tag to compare

This release fixes a bug where a SortedSet property with an explicit comparator set could lose that comparator when clear was called (#265). Thanks to @chrisrhut for the bug report!

v1.14.5

21 Sep 13:00
Compare
Choose a tag to compare

This release fixes a variable naming conflict where a property named "result" would result in incorrect toString output when Guava is not available (#261).

v1.14.4

26 Aug 11:08
Compare
Choose a tag to compare

This release fixes some cases where specific property names (e.g. a List or Set property called "elements", or a Map property called "key") could conflict with parameters in generated methods, result in invalid or incorrect code being generated (#258).

v1.14.3

08 Aug 22:30
Compare
Choose a tag to compare

This release fixes two cases where invalid code could be generated: for SortedSet properties in Java 7; and for buildable properties when Guava is unavailable. (These were picked up by an improvement to the test harness, which should ensure errors of this type do not recur in future.)

v1.14.2

08 Aug 12:18
Compare
Choose a tag to compare

This release adds @SafeVarargs where necessary to avoid incorrect compiler warnings. If you have overridden any varargs methods in your builder, the annotation will not be emitted as it can only be placed on final methods, but compiler warnings will still be suppressed as far as possible. (#180)

v1.14.1

11 Apr 14:52
Compare
Choose a tag to compare

This release fixes mergeFrom to not merge in default values on @Nullable properties, in line with other property types. (See also v1.10.4.)