jenkinsci / jenkinsci/lib-access-modifier
Forbid spurious restriction of a non-public member
Open
- Dominant language
- Java
- Stars
- 20
- Forks
- 20
- Avg merge
- 4h 9m
- Merged PRs (30d)
- 1
Description
I have noticed this in the field:
```java
@Restricted(NoExternalUse.class)
interface Whatever {
}
```
which makes no sense since this type was not public to begin with and so could not have been used externally even without the checker. (Except by something injecting a class into the same package, which we assume is malicious, and solvable anyway via `Sealed: true`.) Since this is a mistake, it should be made into a compile-time error by the annotation processor.
Contributor guide
Assessment
This issue has not been assessed yet.