apache / apache/netbeans

SPI to mark methods as used.

Open
#6,284 0 comments 2 reactions 1 assignee Claimed by @dbalek View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.