-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Lombok's builder pattern uses a static method, builder(), to obtain builders for annotated objects. Many tools, like MapStruct, are designed to automatically detect builders of this pattern. The MinFraud SDK uses constructors to create builders (new Type.Builder()) and some of those constructors take arguments (Transaction.Builder(device)). This makes it combersome integrate the MinFraud SDK with tools expecting Lombok pattern builders.
Please consider modifying the current builder pattern to match Lombok or add Lombok pattern builders in addition to your current pattern in a future release.
The change would be:
Transaction.builder()
.device(device)
.build();
Rather than:
new Transaction.Builder(device)
.build();
Metadata
Metadata
Assignees
Labels
No labels