-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Sam Brannen opened SPR-13119 and commented
Status Quo
Currently, there are several isEmpty()
methods scattered across various utilities within Spring such as ObjectUtils
, CollectionUtils
, and StringUtils
; however, each of these methods typically requires a cast to the type supported for that particular variant. Consequently, there is no general purpose catch-all isEmpty()
method for checking whether an object is empty without knowing its concrete type.
Deliverables
- Introduce a general-purpose
isEmpty(Object)
method inObjectUtils
that supports multiple object types in a central location and transparently delegates to existing functionality inObjectUtils
,CollectionUtils
, andStringUtils
.
Referenced from: commits 05de9a8
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement