Skip to content

Add a couple missing @Nullable annotations in java.security.#132

Merged
cpovirk merged 1 commit intomainfrom
jsecure
Feb 9, 2026
Merged

Add a couple missing @Nullable annotations in java.security.#132
cpovirk merged 1 commit intomainfrom
jsecure

Conversation

@cpovirk
Copy link
Copy Markdown
Collaborator

@cpovirk cpovirk commented Jan 7, 2026

No description provided.

@cpovirk cpovirk requested a review from wmdietl January 7, 2026 19:22
@Nullable PermissionCollection permissions,
@Nullable ClassLoader classloader,
Principal[] principals) {
Principal @Nullable [] principals) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really based on the javadoc, which doesn't specify that null is allowed. But the implementation clearly handles null. Also, getPrincipals() stays non-null, because the field always contains a value that will be cloned.

@wmdietl wmdietl assigned cpovirk and unassigned wmdietl Feb 9, 2026
@cpovirk cpovirk merged commit 3101cf2 into main Feb 9, 2026
21 checks passed
@cpovirk cpovirk deleted the jsecure branch February 9, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants