-
Notifications
You must be signed in to change notification settings - Fork 1.4k
review: fix deserialize bugs, duplicate handlers, type safety, and Javadoc #5318
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
Changes from 4 commits
2ed6da9
e7ddacc
5fadcc3
617c252
2ed7b37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,11 +111,8 @@ public static TypeHandlerLibrary withReflections(Reflections reflections) { | |
| } | ||
|
|
||
| public static TypeHandlerLibrary forModuleEnvironment(ModuleManager moduleManager, TypeRegistry typeRegistry) { | ||
| TypeHandlerLibrary library = new TypeHandlerLibraryImpl(moduleManager, typeRegistry); | ||
|
|
||
| populateWithDefaultHandlers(library); | ||
|
|
||
| return library; | ||
| // The @Inject constructor already calls populateWithDefaultHandlers | ||
| return new TypeHandlerLibraryImpl(moduleManager, typeRegistry); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will accept this as valid, however, the TODO comment did imply that this behaviour may have been intended to be temporary.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair comment, and I suspect a bit of a tip of the ice berg when it comes to architectural quirks and tech debt built up over the years :-) When we're through with these follow-up PRs I'd like to start writing a series of tests also meant to help solidify expectations and codifying them to make them easier to follow 👍 |
||
| } | ||
|
|
||
| private static void populateWithDefaultHandlers(TypeHandlerLibrary serializationLibrary) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.