Skip to content

FreeBuilder 2.7.0

Compare
Choose a tag to compare
@alicederyn alicederyn released this 13 Nov 14:02
23d6cf8

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();
    }
  }
}