-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add support for jspecify annotations #4985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add support for jspecify annotations #4985
Conversation
| @NullUnmarked | ||
| package io.swagger.v3.jaxrs2.resources.jspecify.nullunmarked; | ||
|
|
||
| import org.jspecify.annotations.NullUnmarked; No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my understanding of JSpecify, @NullUnmarked is only relevant within a @NullMarked package, so you could move this package to ...jspecify.nullmarked.nullunmarked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing. I have updated the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're welcome.
Unfortunately that's all I can do as I'm not on the team.
Another suggestion is that you might be better to rebase your commits onto main and force push, instead of merging it in. Typically maintainers prefer PRs without merge commits.
Pull Request
Description
This PR adds support for the JSpecify annotations: @NullMarked, @NullUnmarked, @nullable, @nonnull
Fixes: #4848
Type of Change
Checklist