jenkinsci / jenkinsci/lib-access-modifier
“Friend” API restriction
Open
- Dominant language
- Java
- Stars
- 20
- Forks
- 20
- Avg merge
- 4h 9m
- Merged PRs (30d)
- 1
Description
Some APIs are intended to be stable but only used by a specific predefined list of “friend” components, so `NoExternalUse` is impossible and `Beta` is misleading. Would be nice to be able to write something like
```java
@Restricted(Friend.class)
@Friends("some.other.project.and.its.Class")
public void specialHook() {…}
```
Contributor guide
Assessment
This issue has not been assessed yet.