Skip to content

Allow wider Shape generics in lists in morphology ops #85

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

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

gselzer
Copy link
Contributor

@gselzer gselzer commented Feb 17, 2020

This PR refactors all morphology methods taking a List< Shape > as input (they now take a List< ? extends Shape >), allowing for wider input sets while maintaining compile-time and runtime safety. This is especially useful for imagej-ops, since the wildcard generic allows a wider query of (safe) Op requests to match wrapper ops for these methods.

@axtimwalde axtimwalde merged commit 7c2c8f7 into master Sep 15, 2020
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.

2 participants