-
Notifications
You must be signed in to change notification settings - Fork 1
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
Rewrite to json from bson #3
Conversation
Change to API, removal of most class arguments. Removal of bson/mongo dep, add gson dep. Update to tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @tomburke-rse! It looks a lot better!
I had some comments, mostly about making the code DRYer.
src/main/java/net/imglib2/labeling/DefaultLabelingIOService.java
Outdated
Show resolved
Hide resolved
src/main/java/net/imglib2/labeling/DefaultLabelingIOService.java
Outdated
Show resolved
Hide resolved
src/main/java/net/imglib2/labeling/DefaultLabelingIOService.java
Outdated
Show resolved
Hide resolved
src/main/java/net/imglib2/labeling/DefaultLabelingIOService.java
Outdated
Show resolved
Hide resolved
src/test/java/net/imglib2/labeling/tutorials/E01_LoadLabeling.java
Outdated
Show resolved
Hide resolved
src/main/java/net/imglib2/labeling/DefaultLabelingIOService.java
Outdated
Show resolved
Hide resolved
@tomburke-rse at this point it builds with passing tests. Let's merge (and release) it! |
* Reactivate tests * Method refactoring
Add TypeToken wrapper to circumvent gson dependency in implementing projects
Can all be done on one line.
This prevents vacuous type parameters!
ebf4c5a
to
b658367
Compare
I tested all commits and rewrote the message of the WIP commit to reflect that it is not a WIP (it successfully compiles with passing tests). Should be good to merge now, so I'm doing it. |
Most of the API has been moved to JSON.
The function-based mapping still needs to be solved.
Minimal changelog:
If this all looks fine with you @gselzer, feel free to merge, build and release.