SPI to mark methods as used.
Open
hints
kind:feature
needs:triage
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Description
NetBeans detects unused methods and reports that - for private and package-private methdos. But framework libraries sometimes honour annotations (i.e. injections or bindings) on even private methods. There should be an SPI how to mark a MethodElement unused - the "unused" hint would then not display.
### Use case/motivation
Hints should not mark methods as unused, if they are target of injection or remote/framework call etc.
### Related issues
#6277
### Are you willing to submit a pull request?
Yes
Contributor guide
Assessment
This issue has not been assessed yet.