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

Replaced silent serialization errors with exceptions #409

Merged
merged 3 commits into from May 20, 2022

Conversation

ikurek
Copy link
Contributor

@ikurek ikurek commented May 20, 2022

This closes #149. Previously, serialization of enums and values without assigned encoder/decoder failed silently, returning null when proper value was not found. I've replaced these null returns with thrown exceptions, so it's clear that an error has occurred, and should be fixed

@ikurek ikurek added the code-quality Affects the developer experience when working in our codebase. label May 20, 2022
@ikurek ikurek self-assigned this May 20, 2022
Copy link
Contributor

@ikbalkaya ikbalkaya left a comment

Choose a reason for hiding this comment

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

LGTM

@ikurek ikurek merged commit 90509e6 into main May 20, 2022
@ikurek ikurek deleted the fix/java-enum-serialization-exceptions branch May 20, 2022 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-quality Affects the developer experience when working in our codebase.
Development

Successfully merging this pull request may close these issues.

Throw errors instead of returning null when serialization/ deserialization fails
3 participants