PojoBuilder generates copy() method with annotation @GeneratePojoBuilder(withCopyMethod = true). It may skip generation of this method if all pojo properties are final, but should work for all non-final properties. Right? Wrong.
If your class defines custom accessor methods with Optionals, like this one:
/**
* Copies the values from the given pojo into this builder.
*
* @param pojo
* @return this builder
*/
public FlightBuilder copy(Flight pojo) {
withFlightNumber(pojo.getFlightNumber());
return self;
}
Two properties are missing even though "with" methods are generated properly.
PojoBuilder generates copy() method with annotation @GeneratePojoBuilder(withCopyMethod = true). It may skip generation of this method if all pojo properties are final, but should work for all non-final properties. Right? Wrong.
If your class defines custom accessor methods with Optionals, like this one:
PojoBuilder will generate this copy method:
Two properties are missing even though "with" methods are generated properly.
Please fix it.