Releases: inferred/FreeBuilder
FreeBuilder 2.8.0
This release adds support for Jackson's JsonAlias annotation (issue #460).
FreeBuilder 2.7.0
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
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 theMap.Entry
objects returned by the temporary bimap object passed into themutate
method now correctly return the old value.
Thanks to @thespags for the fixes!
FreeBuilder 2.6.1
Mistaken re-release of v2.6.0. No bug fixes or new features.
FreeBuilder 2.6.0
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
This release adds support for Jackson's JsonAnyGetter annotation (issue #104). Thanks to @mgorniew for implementing this feature!
FreeBuilder 2.4.1
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
FreeBuilder 2.3.0
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.