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.
This PR refactors all morphology methods taking a
List< Shape >
as input (they now take aList< ? 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.