jenkinsci / jenkinsci/lib-access-modifier

“Friend” API restriction

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
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

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.