Closed kjb512 closed 2 months ago
I do not share your perspective that the code is simpler to read when using Objects.requireNonNullElseGet
, especially in the context of nesting Objects.requireNonNullElseGet(…)
inside another instance. Primarily, the representation is different and doesn't represent what we're usually doing.
That being said, making things just different increases the mental requirements to parse the code resulting in harder to read code.
Therefore, I'm closing the ticket without applying the suggestion.
Closes https://github.com/spring-projects/spring-data-redis/issues/3003