mkarneim / pojobuilder

A Java Code Generator for Pojo Builders
Other
334 stars 44 forks source link

Properties using Builder interface should have the type: Builder<? extends Type> #115

Closed Adrodoc closed 8 years ago

Adrodoc commented 8 years ago

For example, the generated builder for the following pojo is not correct:

@GeneratePojoBuilder(withBuilderInterface = Builder.class, withBuilderProperties = true)
public class Pojo {
  public Number value;
}

The builder-with-method "withValue" should have the following signature: public PojoBuilder withValue(Builder<? extends Number> value)

but has: public PojoBuilder withValue(Builder<Number> value)