Skip to content

Commit e0c39a1

Browse files
committed
ImgMath: relax the type constraints in Compute.into( ... )
Still constrained to RealType.
1 parent a7fab62 commit e0c39a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/imglib2/algorithm/math/Compute.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Compute(
6161
}
6262

6363
@SuppressWarnings({ "unchecked", "rawtypes" })
64-
public < O extends RealType< O > > RandomAccessibleInterval< O > into( final RandomAccessibleInterval< O > target )
64+
public RandomAccessibleInterval< ? extends RealType< ? > > into( final RandomAccessibleInterval< ? extends RealType< ? > > target )
6565
{
6666
// Recursive copy: initializes interval iterators and sets temporary computation holder
6767
final IFunction f = this.operation.reInit(
@@ -81,7 +81,7 @@ public < O extends RealType< O > > RandomAccessibleInterval< O > into( final Ran
8181
else
8282
{
8383
// Incompatible iteration order
84-
final Cursor< RealType > cursor = ( Cursor< RealType > )Views.iterable( target ).cursor();
84+
final Cursor< ? extends RealType< ? > > cursor = Views.iterable( target ).cursor();
8585

8686
while ( cursor.hasNext() )
8787
{

0 commit comments

Comments
 (0)