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();
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();