Skip to content
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

Suppress serialization warnings. #2502

Merged
merged 1 commit into from
Sep 30, 2023
Merged

Conversation

eamonnmcmanus
Copy link
Member

Recent versions of javac emit a warning if a serializable class has a non-transient instance field with a declared type that does not inherit Serializable. In this context, we know that the actual values will always be serializable.

Recent versions of javac emit a warning if a serializable class has
a non-transient instance field with a declared type that does not
inherit `Serializable`. In this context, we know that the actual
values will always be serializable.
@eamonnmcmanus eamonnmcmanus merged commit 45acc4d into google:main Sep 30, 2023
9 checks passed
@eamonnmcmanus eamonnmcmanus deleted the java21 branch September 30, 2023 19:41
tibor-universe pushed a commit to getuniverse/gson that referenced this pull request Sep 14, 2024
Recent versions of javac emit a warning if a serializable class has
a non-transient instance field with a declared type that does not
inherit `Serializable`. In this context, we know that the actual
values will always be serializable.
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