Skip to content

Enhancement: Add CollectionUtils.isNotEmpty() #34518

@darckyn

Description

@darckyn

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); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions