Quantcast
Viewing all articles
Browse latest Browse all 49

Answer by blacktide for Error with Lombok's @Builder with generic typed field

To resolve the compilation error, you should define the generic when calling the builder() method like so:

OperationResult<String> result = OperationResult.<String>builder()    .data("Test")    .build(); 

Viewing all articles
Browse latest Browse all 49

Trending Articles