You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Please fix it.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: