Skip to content

Continue standardizing annotations on serialization-related members. #7786

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

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

copybara-service[bot]
Copy link
Contributor

Continue standardizing annotations on serialization-related members.

Compare cl/725785821 and cl/745110143.

(I suppose we could imagine a future in which GWT, J2CL, and J2KT all automatically strip members annotated with @Serial. We'd still need @GwtIncompatible and @J2ktIncompatible for "helpers" (i.e., classes, fields, and methods that aren't directly called by the Java serialization system), but we could at least omit those annotations from the @Serial members themselves.)

RELNOTES=n/a

Compare cl/725785821 and cl/745110143.

(I suppose we could imagine a future in which GWT, J2CL, and J2KT all _automatically_ strip members annotated with `@Serial`. We'd still need `@GwtIncompatible` and `@J2ktIncompatible` for "helpers" (i.e., classes, fields, and methods that aren't directly called by the Java serialization system), but we could at least omit those annotations from the `@Serial` members themselves.)

RELNOTES=n/a
PiperOrigin-RevId: 747924219
@copybara-service copybara-service bot merged commit 412c1bf into master Apr 15, 2025
@copybara-service copybara-service bot deleted the test_747563188 branch April 15, 2025 17:18
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