Allow custom writer configurations in IonSystemBuilder#781
Allow custom writer configurations in IonSystemBuilder#781popematt merged 11 commits intoamazon-ion:masterfrom yvrng:master
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #781 +/- ##
============================================
+ Coverage 67.23% 67.31% +0.08%
- Complexity 5484 5498 +14
============================================
Files 159 159
Lines 23025 23044 +19
Branches 4126 4124 -2
============================================
+ Hits 15481 15513 +32
+ Misses 6262 6254 -8
+ Partials 1282 1277 -5 ☔ View full report in Codecov by Sentry. |
popematt
left a comment
There was a problem hiding this comment.
Thanks for your contribution!
Let me first say that this is a good change, and we will merge this feature. However, there are a few implementation details that seem surprising to me. I understand why you did it that way—it looks like they are equivalent to the existing code for setting the reader builder—so I'm going to ask one of the other Ion maintainers to provide a second opinion here.
We might decide to merge this as is, change some of the behaviors before merging, or change the writer builder and reader builder options in a separate PR.
zslayton
left a comment
There was a problem hiding this comment.
Thanks for the contribution!
Co-authored-by: Zack Slayton <zack.slayton@gmail.com>
Co-authored-by: Zack Slayton <zack.slayton@gmail.com>
Co-authored-by: Zack Slayton <zack.slayton@gmail.com>
|
I've discussed this with @zslayton and @tgregg, and we agreed that some of the existing behavior is unexpected, but we're not sure yet what the impact would be on consumers if we changed it. We're going to merge this PR without addressing any of the issues with the existing behavior, and I've created #783 for us to follow up on that. |
* Allow custom writer configurations in IonSystemBuilder * Update baseline.xml with JDK 17 * fix: fix typo in javadoc Co-authored-by: Zack Slayton <zack.slayton@gmail.com> * fix: typo in javadoc Co-authored-by: Zack Slayton <zack.slayton@gmail.com> * fix: typo in javadoc Co-authored-by: Zack Slayton <zack.slayton@gmail.com> * Add default values on builders * Add javadoc * Add more tests on catalog * Fix tests on catalog --------- Co-authored-by: Zack Slayton <zack.slayton@gmail.com> Co-authored-by: Matthew Pope <81593196+popematt@users.noreply.github.com>
Description of changes:
These changes allow the user to set their own configurations for the
IonTextWriterBuilderandIonBinaryWriterBuilderwhen using theIonSystemBuilder, bringing more flexibility.Because this involved adding getters/setters, I had to update the SpotBugs
baseline.xmlfile which was preventing the build from succeeding, and to fix a little bug in the Gradle configuration.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.