Skip to content

*Utils.find### to return Optional [SPR-17484] #22016

Closed
@spring-projects-issues

Description

@spring-projects-issues

László Stahorszki opened SPR-17484 and commented

With the release of Optional in Java 8, I think it would be appropriate for methods, like AnnotationUtils.findAnnotation() to return Optional<T>, so that we don't need additional checking parts if an annotation in this instance exists or not


Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions