-
Notifications
You must be signed in to change notification settings - Fork 58
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
Collection copying only when changed #116
Collection copying only when changed #116
Conversation
…d the unchanged collection fields must not be copied.
...ilder-processor/src/main/java/io/soabase/recordbuilder/processor/CollectionBuilderUtils.java
Outdated
Show resolved
Hide resolved
…nges to shim method signatures.
Instead of making a backward incompatible change can't we add a 2 |
Of course, but why keep |
True - but in that case the test can be fixed here right? |
Yes, I already did that. I just didn't want to lead with changing tests ;) |
Is there anything more to do on this or can it be merged? From my POV all the discussed points are solved. |
I apologize - I got bogged down with work. I'll get to this soon (hopefully this week) |
LGTM - thank you very much |
For #114
Currently the test
TestCollections.testRecordBuilderOptionsCopied
fails, since I had to change the signature of the__list()
shim methods. The problem is, that the code as on master generates setters for collections with different signatures:If
addSingleItemCollectionBuilders == true
:someList(Collection<? extends ListItem> someList)
, but otherwise thesomeList
parameter is of typeList<...>
. I didn't want to change that behavior together with the other ticket, though (see #117 ).