Skip to content

Commit aa899f9

Browse files
committed
Remove redundant @mutable annotations
It's already specified in the implemented interface, and therefore implicit for the implementing classes.
1 parent 51883b0 commit aa899f9

37 files changed

Lines changed: 74 additions & 111 deletions

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/coloc/pValue/DefaultPValue.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import org.scijava.ops.OpDependency;
5151
import org.scijava.ops.core.Op;
5252
import org.scijava.ops.function.Computers;
53-
import org.scijava.param.Mutable;
5453
import org.scijava.param.Parameter;
5554
import org.scijava.plugin.Plugin;
5655
import org.scijava.struct.ItemIO;
@@ -207,7 +206,7 @@ class PValueSimpleWithRandomizations<T extends RealType<T>, U extends RealType<U
207206
@Override
208207
public void compute(RandomAccessibleInterval<T> in1, RandomAccessibleInterval<U> in2,
209208
BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double> in3, Integer in4,
210-
ExecutorService in5, @Mutable PValueResult out) {
209+
ExecutorService in5, PValueResult out) {
211210
Long defaultSeed = 0x27372034l;
212211
pValueOp.compute(in1, in2, in3, in4, null, defaultSeed, in5, out);
213212
}
@@ -229,7 +228,7 @@ class PValueSimple<T extends RealType<T>, U extends RealType<U>> implements
229228
@Override
230229
public void compute(RandomAccessibleInterval<T> in1, RandomAccessibleInterval<U> in2,
231230
BiFunction<RandomAccessibleInterval<T>, RandomAccessibleInterval<U>, Double> in3, ExecutorService in4,
232-
@Mutable PValueResult out) {
231+
PValueResult out) {
233232
Integer defaultNumberRandomizations = 100;
234233
pValueOp.compute(in1, in2, in3, defaultNumberRandomizations, in4, out);
235234
}

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/filter/ApplyCenterAwareNeighborhoodBasedFilter.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import net.imglib2.view.Views;
3939

4040
import org.scijava.ops.function.Computers;
41-
import org.scijava.param.Mutable;
4241

4342
public final class ApplyCenterAwareNeighborhoodBasedFilter<I, O> {
4443

@@ -60,7 +59,7 @@ public static <I, O> void compute(final RandomAccessibleInterval<I> input,
6059
final Shape inputNeighborhoodShape,
6160
OutOfBoundsFactory<I, RandomAccessibleInterval<I>> outOfBoundsFactory,
6261
final Computers.Arity2<Iterable<I>, I, O> filterOp,
63-
@Mutable final RandomAccessibleInterval<O> output)
62+
final RandomAccessibleInterval<O> output)
6463
{
6564
if (outOfBoundsFactory == null) outOfBoundsFactory =
6665
defaultOutOfBoundsFactory();

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/filter/dog/DoGVaryingSigmas.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import org.scijava.ops.function.Computers;
4343
import org.scijava.ops.function.Computers;
4444
import org.scijava.ops.function.Computers;
45-
import org.scijava.param.Mutable;
4645
import org.scijava.param.Parameter;
4746
import org.scijava.plugin.Plugin;
4847
import org.scijava.struct.ItemIO;
@@ -107,7 +106,7 @@ class DoGSingleSigma<T extends NumericType<T> & NativeType<T>> implements
107106
@Override
108107
public void compute(RandomAccessibleInterval<T> in1, Double in2, Double in3,
109108
OutOfBoundsFactory<T, RandomAccessibleInterval<T>> in4, ExecutorService in5,
110-
@Mutable RandomAccessibleInterval<T> out) {
109+
RandomAccessibleInterval<T> out) {
111110
double[] sigmas1 = new double[in1.numDimensions()];
112111
double[] sigmas2 = new double[in1.numDimensions()];
113112
for (int i = 0; i < in1.numDimensions(); i++) {

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/filter/tubeness/DefaultTubeness.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
import org.scijava.ops.function.Computers;
5555
import org.scijava.ops.function.Computers;
5656
import org.scijava.ops.function.Computers;
57-
import org.scijava.param.Mutable;
5857
import org.scijava.param.Parameter;
5958
import org.scijava.plugin.Plugin;
6059
import org.scijava.struct.ItemIO;
@@ -268,7 +267,7 @@ class DefaultTubenessWithoutCalibration<T extends RealType<T>> implements
268267

269268
@Override
270269
public void compute(RandomAccessibleInterval<T> in1, ExecutorService in2, Double in3,
271-
@Mutable IterableInterval<DoubleType> out) {
270+
IterableInterval<DoubleType> out) {
272271
tubenessOp.compute(in1, in2, in3, new double[] {}, out);
273272
}
274273

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/image/invert/Inverters.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import org.scijava.ops.OpField;
1616
import org.scijava.ops.core.OpCollection;
1717
import org.scijava.ops.function.Computers;
18-
import org.scijava.param.Mutable;
1918
import org.scijava.plugin.Plugin;
2019

2120
@Plugin(type = OpCollection.class)
@@ -78,7 +77,7 @@ public void computeII(final RandomAccessibleInterval<T> input, final T min, fina
7877
// TODO: Think of a better solution.
7978
@SuppressWarnings("unchecked")
8079
public void computeIIInteger(final RandomAccessibleInterval<T> input, final T min, final T max,
81-
final @Mutable RandomAccessibleInterval<T> output) {
80+
final RandomAccessibleInterval<T> output) {
8281

8382
final BigInteger minValue = getBigInteger(min);
8483
final BigInteger maxValue = getBigInteger(max);

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/image/normalize/NormalizeIILazy.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import org.scijava.ops.OpDependency;
4040
import org.scijava.ops.core.Op;
4141
import org.scijava.ops.function.Computers;
42-
import org.scijava.param.Mutable;
4342
import org.scijava.param.Parameter;
4443
import org.scijava.plugin.Plugin;
4544
import org.scijava.struct.ItemIO;
@@ -68,7 +67,7 @@ public class NormalizeIILazy<I extends RealType<I>, O extends RealType<O>>
6867
private Computers.Arity5<RandomAccessibleInterval<I>, I, I, O, O, RandomAccessibleInterval<O>> normalizerFunc;
6968

7069
@Override
71-
public void compute(RandomAccessibleInterval<I> img, @Mutable RandomAccessibleInterval<O> output) {
70+
public void compute(RandomAccessibleInterval<I> img, RandomAccessibleInterval<O> output) {
7271
Pair<I, I> sourceMinMax = minMaxFunc.apply(img);
7372
O min = Util.getTypeFromInterval(output).createVariable();
7473
min.setReal(min.getMinValue());

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/image/watershed/Watershed.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
import org.scijava.ops.function.Computers;
6161
import org.scijava.ops.function.Functions;
6262
import org.scijava.ops.function.Functions;
63-
import org.scijava.param.Mutable;
6463
import org.scijava.param.Parameter;
6564
import org.scijava.plugin.Plugin;
6665
import org.scijava.struct.ItemIO;
@@ -400,7 +399,7 @@ class WatershedMaskless<T extends RealType<T>, B extends BooleanType<B>> impleme
400399

401400
@Override
402401
public void compute(RandomAccessibleInterval<T> in, Boolean useEightConnectivity, Boolean drawWatersheds,
403-
@Mutable ImgLabeling<Integer, IntType> outputLabeling) {
402+
ImgLabeling<Integer, IntType> outputLabeling) {
404403
watershedOp.compute(in, useEightConnectivity, drawWatersheds, null, outputLabeling);
405404

406405
}

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/image/watershed/WatershedBinary.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import org.scijava.ops.core.Op;
4646
import org.scijava.ops.function.Computers;
4747
import org.scijava.ops.function.Functions;
48-
import org.scijava.param.Mutable;
4948
import org.scijava.param.Parameter;
5049
import org.scijava.plugin.Plugin;
5150
import org.scijava.struct.ItemIO;
@@ -156,7 +155,7 @@ class WatershedBinaryMaskless<T extends BooleanType<T>, B extends BooleanType<B>
156155

157156
@Override
158157
public void compute(RandomAccessibleInterval<T> in, Boolean useEightConnectivity, Boolean drawWatersheds,
159-
double[] sigma, ExecutorService es, @Mutable ImgLabeling<Integer, IntType> outputLabeling) {
158+
double[] sigma, ExecutorService es, ImgLabeling<Integer, IntType> outputLabeling) {
160159
watershedOp.compute(in, useEightConnectivity, drawWatersheds, sigma, null, es, outputLabeling);
161160

162161
}

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/image/watershed/WatershedBinarySingleSigma.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
import org.scijava.ops.function.Computers;
5353
import org.scijava.ops.function.Functions;
5454
import org.scijava.ops.function.Functions;
55-
import org.scijava.param.Mutable;
5655
import org.scijava.param.Parameter;
5756
import org.scijava.plugin.Plugin;
5857
import org.scijava.struct.ItemIO;
@@ -157,7 +156,7 @@ class WatershedBinarySingleSigmaMaskless<T extends RealType<T>, B extends Boolea
157156

158157
@Override
159158
public void compute(RandomAccessibleInterval<T> in, Boolean useEightConnectivity, Boolean drawWatersheds,
160-
Double sigma, ExecutorService es, @Mutable ImgLabeling<Integer, IntType> outputLabeling) {
159+
Double sigma, ExecutorService es, ImgLabeling<Integer, IntType> outputLabeling) {
161160
watershedOp.compute(in, useEightConnectivity, drawWatersheds, sigma, null, es, outputLabeling);
162161

163162
}

‎imagej/imagej-ops2/src/main/java/net/imagej/ops2/image/watershed/WatershedSeeded.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
import org.scijava.ops.core.Op;
6969
import org.scijava.ops.function.Computers;
7070
import org.scijava.ops.function.Functions;
71-
import org.scijava.param.Mutable;
7271
import org.scijava.param.Parameter;
7372
import org.scijava.plugin.Plugin;
7473
import org.scijava.struct.ItemIO;
@@ -404,7 +403,7 @@ class WatershedSeededMaskless<T extends RealType<T>, B extends BooleanType<B>> i
404403
@Override
405404
public void compute(RandomAccessibleInterval<T> in, ImgLabeling<Integer, IntType> seeds,
406405
Boolean useEightConnectivity, Boolean drawWatersheds,
407-
@Mutable ImgLabeling<Integer, IntType> outputLabeling) {
406+
ImgLabeling<Integer, IntType> outputLabeling) {
408407
watershedOp.compute(in, seeds, useEightConnectivity, drawWatersheds, null, outputLabeling);
409408

410409
}

0 commit comments

Comments
 (0)