Quantcast
Channel: User blacktide - Stack Overflow
Viewing all articles
Browse latest Browse all 49

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

$
0
0

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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>