Skip to content

Allow usage of @CheckReturnValue on types and constructors #34910

Closed
@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)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions