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

Releases: inferred/FreeBuilder

FreeBuilder 2.8.0

09 Oct 10:29
3a38f58
Compare
Choose a tag to compare

This release adds support for Jackson's JsonAlias annotation (issue #460).

FreeBuilder 2.7.0

13 Nov 14:02
23d6cf8
Compare
Choose a tag to compare

With this release, FreeBuilder can generate builders without the standard public methods build, buildPartial, clear and mergeFrom, allowing you to give them alternative names. (Note that doing so will disable enhanced support for nested builders for this type, as it needs to be able to call these methods.)

public interface MyType {
  class Builder extends MyType_Builder {
    public OtherDataType build() {
      // This signature is not compatible with the default build method.
      // FreeBuilder will instead declare a package-scoped _buildImpl.
      ...
    }
    public DataType buildMyType() {
      return _buildImpl();
    }
  }
}

FreeBuilder 2.6.2

31 Aug 09:40
cedcf72
Compare
Choose a tag to compare

This release fixes a couple of bugs in the support for Guava's BiMap type introduced in v2.6.0:

  • The put methods no longer throw an exception if the key-value pair already exists in the bimap (only if the value exists and is associated with a different key).
  • When a check constraint is in place, setValue on the Map.Entry objects returned by the temporary bimap object passed into the mutate method now correctly return the old value.

Thanks to @thespags for the fixes!

FreeBuilder 2.6.1

09 Apr 15:24
e19d636
Compare
Choose a tag to compare

Mistaken re-release of v2.6.0. No bug fixes or new features.

FreeBuilder 2.6.0

04 Apr 17:31
fa5ab71
Compare
Choose a tag to compare

This release adds support for Guava's BiMap type (issue #418). Thanks to @thespags for doing most of the legwork on this feature!

Note that the FreeBuilder README for previous releases erroneously stated that calling the putX method on a Map type would throw an IllegalArgumentException if the key was already present in the map. This did not match the generated JavaDoc and was not correct. The entry will be replaced in these cases, and no error will be thrown.

FreeBuilder 2.5.0

11 Dec 10:43
197d43f
Compare
Choose a tag to compare

This release adds support for Jackson's JsonAnyGetter annotation (issue #104). Thanks to @mgorniew for implementing this feature!

FreeBuilder 2.4.1

24 May 10:31
adec063
Compare
Choose a tag to compare

This release fixes a bug where the new @IgnoredByEquals and @NotInToString were accidentally being treated as inherited annotations in batch compilation.

FreeBuilder 2.4.0

23 May 10:15
b6ab5cf
Compare
Choose a tag to compare

This release adds @IgnoredByEquals and @NotInToString annotations to remove properties from the generated equals/hashCode/toString implementations (#54). Thanks to @thespags for the patch!

FreeBuilder 2.3.0

28 Jan 09:16
03bc2c8
Compare
Choose a tag to compare

This release adds the ability to pass partials to the static Builder.from method (#407), reducing the fragility of tests of modify-rebuild code without requiring the optional toBuilder method. See the 2.3 release notes for more information.

FreeBuilder 2.2.3

27 Jan 12:09
bc437ad
Compare
Choose a tag to compare

This release makes the optional toBuilder method more efficient (#403), and improves the generated JavaDoc on several methods (#402, #406).