Skip to content

Allow usage of @CheckReturnValue on types #34910

Open
@odrotbohm

Description

@odrotbohm

@CheckReturnValue currently only targets ElementType.METHOD. IDEs, however, also consider a type-level @CheckReturnValue to express that all methods' return values should be checked. I would appreciate it if our annotation could be used that way, too.

It would also make sense to allow the usage of the annotation on constructors and packages, the latter implying all methods in the package having to be checked.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: waiting-for-internal-feedbackAn issue that needs input from a member or another Spring Teamstatus: waiting-for-triageAn issue we've not yet triaged or decided on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions