Skip to content

Remove JSR-305 ThreadSafe annotation and replace with JavaDoc#12762

Draft
Kainsin wants to merge 1 commit intogrpc:masterfrom
Kainsin:master
Draft

Remove JSR-305 ThreadSafe annotation and replace with JavaDoc#12762
Kainsin wants to merge 1 commit intogrpc:masterfrom
Kainsin:master

Conversation

@Kainsin
Copy link
Copy Markdown
Contributor

@Kainsin Kainsin commented Apr 17, 2026

This is another attempt to remove JSR-305 annotations but instead of replacing with ErrorProne's ThreadSafe, sticks to adding a JavaDoc comment. This should basically keep things inline with what JSR-305 ThreadSafe affords.

Adding ErrorProne's ThreadSafe can be considered in the future, as it expects more things than JSR-305.

Removing the JSR-305 dependency here allows Java applications that have moved away from javax to compile and avoids a bug in Immutables and Lombok (and possibly other annotation processors) from failing when JSR-305 is not present.

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.

1 participant