Closed raderio closed 2 years ago
In that case minimum
and maximum
(amoung others) need to work both on a nullable context and on a non-nullable context.
I think the ifPresent
also makes the intent of the code more clear to the reader.
I agree with @cies.
Why it is neccesary to have
ifPresent
? Just apply validation rules ony if value is not null in any case.