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

Move specific methods from BaseRuntime to JcfRuntime #47

Merged
merged 1 commit into from Jun 7, 2019
Merged

Move specific methods from BaseRuntime to JcfRuntime #47

merged 1 commit into from Jun 7, 2019

Conversation

slandelle
Copy link
Collaborator

Motivation:

~200 loc in JcfRuntime are actually are not used by Jackson and Gson runtimes but are specific to JcfRuntime.

Those protected methods needlessly increase the API surface, make code analysis more complicated and make things more confusing for users who might want to implement a Runtime.

Modification:

Move unparse methods to JcfRuntime and make them private.

Result:

Smaller BaseRuntime API surface.

@slandelle
Copy link
Collaborator Author

@iconara PTAL

Copy link
Collaborator

@iconara iconara left a comment

Choose a reason for hiding this comment

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

I guess that if a future adapter would have need for these it would be easy enough to move them to a helper, so why not.

Motivation:

~200 loc in JcfRuntime are actually are not used by Jackson and Gson runtimes but are specific to JcfRuntime.

Those protected methods needlessly increase the API surface, make code analysis more complicated and make things more confusing for users who might want to implement a Runtime.

Modification:

Move unparse methods to JcfRuntime and make them private.

Result:

Smaller BaseRuntime API surface.
@iconara iconara merged commit 5fa7eca into burtcorp:master Jun 7, 2019
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.

None yet

2 participants