Skip to content

Replace !Optional.isPresent() with isEmpty() for readability #3648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

jeonghyeon00
Copy link
Contributor

@jeonghyeon00 jeonghyeon00 commented Oct 22, 2024

Refactor: replace !optionalValue.isPresent() with optionalValue.isEmpty()

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 22, 2024
@jeonghyeon00 jeonghyeon00 changed the title Refactor: Remove double negation by replacing !optionalValue.isPresent() with optionalValue.isEmpty() Refactor: replace !optionalValue.isPresent() with optionalValue.isEmpty() Oct 22, 2024
@mp911de mp911de self-assigned this Oct 24, 2024
@mp911de mp911de added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 24, 2024
@mp911de mp911de changed the title Refactor: replace !optionalValue.isPresent() with optionalValue.isEmpty() Replace !Optional.isPresent() with isEmpty() for readability Oct 29, 2024
@mp911de mp911de added this to the 3.2.12 (2023.1.12) milestone Oct 29, 2024
@mp911de mp911de closed this in 7461b1b Oct 29, 2024
@mp911de
Copy link
Member

mp911de commented Oct 29, 2024

Thank you for your contribution. That's merged and backported now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants