Skip to content
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

Enhancement: Add CollectionUtils.isNotEmpty() #34518

Closed
darckyn opened this issue Feb 28, 2025 · 1 comment
Closed

Enhancement: Add CollectionUtils.isNotEmpty() #34518

darckyn opened this issue Feb 28, 2025 · 1 comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: superseded An issue that has been superseded by another

Comments

@darckyn
Copy link

darckyn commented Feb 28, 2025

Hi.
Currently in org.springframework.util.CollectionUtils there is only isEmpty() method, and the isNotEmpty() method would help to avoid !CollectionUtils.isEmpty(), making the code more readable and standardized.

public static boolean isNotEmpty(@Nullable Collection<?> collection) { return !isEmpty(collection); }

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 28, 2025
@bclozel
Copy link
Member

bclozel commented Feb 28, 2025

Superseded by #34519

@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2025
@bclozel bclozel added status: superseded An issue that has been superseded by another and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 28, 2025
@sbrannen sbrannen added the in: core Issues in core modules (aop, beans, core, context, expression) label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: superseded An issue that has been superseded by another
Projects
None yet
Development

No branches or pull requests

4 participants