Skip to content

Conversation

@ddongjunn
Copy link

This change improves the readability and idiomatic use of Gradle's
Property<T> API by replacing an explicit isPresent() check with
map(...).getOrNull().

The new version is functionally equivalent but more concise and aligns
with recommended usage patterns in Gradle property handling. Using
map().getOrNull() also avoids potential null-check boilerplate and
reflects the intended design of Gradle's Property API.

No behavioral changes.

Signed-off-by: djlee ddongjunn@gmail.com

This change improves the readability and idiomatic use of Gradle's
`Property<T>` API by replacing an explicit `isPresent()` check with
`map(...).getOrNull()`.

The new version is functionally equivalent but more concise and aligns
with recommended usage patterns in Gradle property handling.

No behavioral changes.

Signed-off-by: djlee <ddongjunn@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 29, 2025
@philwebb
Copy link
Member

Thanks for the suggestion, but I'm not sure that the update improves the code all that much and I'd rather leave things as they are.

@philwebb philwebb closed this Nov 29, 2025
@philwebb philwebb added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: declined A suggestion or change that we don't feel we should currently apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants