Skip to content

Commit

Permalink
Remove redundant generics
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Apr 5, 2024
1 parent b9fba61 commit 28cc4b0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public abstract class AbstractTransformedIntervalRandomAccessible implements Ran

final protected int n;

protected InterpolatorFactory< FloatType, RandomAccessible< FloatType > > interpolatorFactory = new NLinearInterpolatorFactory< FloatType >();
protected InterpolatorFactory< FloatType, RandomAccessible< FloatType > > interpolatorFactory = new NLinearInterpolatorFactory<>();

public AbstractTransformedIntervalRandomAccessible(
final Interval interval, // from ImgLoader
Expand All @@ -60,12 +60,12 @@ public AbstractTransformedIntervalRandomAccessible(

public void setLinearInterpolation()
{
this.interpolatorFactory = new NLinearInterpolatorFactory< FloatType >();
this.interpolatorFactory = new NLinearInterpolatorFactory<>();
}

public void setNearestNeighborInterpolation()
{
this.interpolatorFactory = new NearestNeighborInterpolatorFactory< FloatType >();
this.interpolatorFactory = new NearestNeighborInterpolatorFactory<>();
}

@Override
Expand Down

0 comments on commit 28cc4b0

Please sign in to comment.