Skip to content

Commit 8c32693

Browse files
committed
Use non-deprecated Priority constants
1 parent 47f2fe1 commit 8c32693

File tree

166 files changed

+226
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+226
-226
lines changed

src/main/java/net/imagej/ops/NamespacePreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
*
4545
* @author Mark Hiner
4646
*/
47-
@Plugin(type = PreprocessorPlugin.class, priority = Priority.HIGH_PRIORITY)
47+
@Plugin(type = PreprocessorPlugin.class, priority = Priority.HIGH)
4848
public class NamespacePreprocessor extends AbstractPreprocessorPlugin {
4949

5050
@Parameter(required = false)

src/main/java/net/imagej/ops/OpEnvironmentPreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*
4646
* @author Curtis Rueden
4747
*/
48-
@Plugin(type = PreprocessorPlugin.class, priority = Priority.VERY_HIGH_PRIORITY)
48+
@Plugin(type = PreprocessorPlugin.class, priority = Priority.VERY_HIGH)
4949
public class OpEnvironmentPreprocessor extends AbstractPreprocessorPlugin {
5050

5151
@Parameter(required = false)

src/main/java/net/imagej/ops/cached/CachedOpEnvironment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public CachedOpEnvironment(final OpEnvironment parent,
8080
super(parent, prioritizedInfos);
8181

8282
if (prioritizedInfos != null) for (final OpInfo info : prioritizedInfos) {
83-
info.cInfo().setPriority(Priority.FIRST_PRIORITY);
83+
info.cInfo().setPriority(Priority.FIRST);
8484
}
8585

8686
this.ignoredOps = ignoredOps;

src/main/java/net/imagej/ops/convert/ConvertTypes.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void compute(final C input, final BitType output) {
8787
}
8888

8989
@Plugin(type = Ops.Convert.Bit.class, name = Ops.Convert.Bit.NAME,
90-
priority = Priority.HIGH_PRIORITY)
90+
priority = Priority.HIGH)
9191
public static class IntegerToBit<T extends IntegerType<T>> extends
9292
AbstractUnaryHybridCF<T, BitType> implements Convert.Bit
9393
{
@@ -122,7 +122,7 @@ public void compute(final C input, final Unsigned2BitType output) {
122122
}
123123

124124
@Plugin(type = Ops.Convert.Uint2.class, name = Ops.Convert.Uint2.NAME,
125-
priority = Priority.HIGH_PRIORITY)
125+
priority = Priority.HIGH)
126126
public static class IntegerToUint2<T extends IntegerType<T>> extends
127127
AbstractUnaryHybridCF<T, Unsigned2BitType> implements Convert.Uint2
128128
{
@@ -157,7 +157,7 @@ public void compute(final C input, final Unsigned4BitType output) {
157157
}
158158

159159
@Plugin(type = Ops.Convert.Uint4.class, name = Ops.Convert.Uint4.NAME,
160-
priority = Priority.HIGH_PRIORITY)
160+
priority = Priority.HIGH)
161161
public static class IntegerToUint4<T extends IntegerType<T>> extends
162162
AbstractUnaryHybridCF<T, Unsigned4BitType> implements Convert.Uint4
163163
{
@@ -193,7 +193,7 @@ public void compute(final C input, final ByteType output) {
193193
}
194194

195195
@Plugin(type = Ops.Convert.Int8.class, name = Ops.Convert.Int8.NAME,
196-
priority = Priority.HIGH_PRIORITY)
196+
priority = Priority.HIGH)
197197
public static class IntegerToInt8<T extends IntegerType<T>> extends
198198
AbstractUnaryHybridCF<T, ByteType> implements Convert.Int8
199199
{
@@ -229,7 +229,7 @@ public void compute(final C input, final UnsignedByteType output) {
229229
}
230230

231231
@Plugin(type = Ops.Convert.Uint8.class, name = Ops.Convert.Uint8.NAME,
232-
priority = Priority.HIGH_PRIORITY, attrs = { @Attr(name = "aliases",
232+
priority = Priority.HIGH, attrs = { @Attr(name = "aliases",
233233
value = Ops.Convert.Uint8.ALIASES) })
234234
public static class IntegerToUint8<T extends IntegerType<T>> extends
235235
AbstractUnaryHybridCF<T, UnsignedByteType> implements Convert.Uint8
@@ -265,7 +265,7 @@ public void compute(final C input, final Unsigned12BitType output) {
265265
}
266266

267267
@Plugin(type = Ops.Convert.Uint12.class, name = Ops.Convert.Uint12.NAME,
268-
priority = Priority.HIGH_PRIORITY)
268+
priority = Priority.HIGH)
269269
public static class IntegerToUint12<T extends IntegerType<T>> extends
270270
AbstractUnaryHybridCF<T, Unsigned12BitType> implements Convert.Uint12
271271
{
@@ -301,7 +301,7 @@ public void compute(final C input, final ShortType output) {
301301
}
302302

303303
@Plugin(type = Ops.Convert.Int16.class, name = Ops.Convert.Int16.NAME,
304-
priority = Priority.HIGH_PRIORITY)
304+
priority = Priority.HIGH)
305305
public static class IntegerToInt16<T extends IntegerType<T>> extends
306306
AbstractUnaryHybridCF<T, ShortType> implements Convert.Int16
307307
{
@@ -337,7 +337,7 @@ public void compute(final C input, final UnsignedShortType output) {
337337
}
338338

339339
@Plugin(type = Ops.Convert.Uint16.class, name = Ops.Convert.Uint16.NAME,
340-
priority = Priority.HIGH_PRIORITY, attrs = { @Attr(name = "aliases",
340+
priority = Priority.HIGH, attrs = { @Attr(name = "aliases",
341341
value = Ops.Convert.Uint16.ALIASES) })
342342
public static class IntegerToUint16<T extends IntegerType<T>> extends
343343
AbstractUnaryHybridCF<T, UnsignedShortType> implements Convert.Uint16
@@ -374,7 +374,7 @@ public void compute(final C input, final IntType output) {
374374
}
375375

376376
@Plugin(type = Ops.Convert.Int32.class, name = Ops.Convert.Int32.NAME,
377-
priority = Priority.HIGH_PRIORITY, attrs = { @Attr(name = "aliases",
377+
priority = Priority.HIGH, attrs = { @Attr(name = "aliases",
378378
value = Ops.Convert.Int32.ALIASES) })
379379
public static class IntegerToInt32<T extends IntegerType<T>> extends
380380
AbstractUnaryHybridCF<T, IntType> implements Convert.Int32
@@ -411,7 +411,7 @@ public void compute(final C input, final UnsignedIntType output) {
411411
}
412412

413413
@Plugin(type = Ops.Convert.Uint32.class, name = Ops.Convert.Uint32.NAME,
414-
priority = Priority.HIGH_PRIORITY, attrs = { @Attr(name = "aliases",
414+
priority = Priority.HIGH, attrs = { @Attr(name = "aliases",
415415
value = Ops.Convert.Uint32.ALIASES) })
416416
public static class IntegerToUint32<T extends IntegerType<T>> extends
417417
AbstractUnaryHybridCF<T, UnsignedIntType> implements Convert.Uint32
@@ -448,7 +448,7 @@ public void compute(final C input, final LongType output) {
448448
}
449449

450450
@Plugin(type = Ops.Convert.Int64.class, name = Ops.Convert.Int64.NAME,
451-
priority = Priority.HIGH_PRIORITY, attrs = { @Attr(name = "aliases",
451+
priority = Priority.HIGH, attrs = { @Attr(name = "aliases",
452452
value = Ops.Convert.Int64.ALIASES) })
453453
public static class IntegerToInt64<T extends IntegerType<T>> extends
454454
AbstractUnaryHybridCF<T, LongType> implements Convert.Int64
@@ -492,7 +492,7 @@ public void compute(final C input, final UnsignedLongType output) {
492492
}
493493

494494
@Plugin(type = Ops.Convert.Uint64.class, name = Ops.Convert.Uint64.NAME,
495-
priority = Priority.HIGH_PRIORITY, attrs = { @Attr(name = "aliases",
495+
priority = Priority.HIGH, attrs = { @Attr(name = "aliases",
496496
value = Ops.Convert.Uint64.ALIASES) })
497497
public static class IntegerToUint64<T extends IntegerType<T>> extends
498498
AbstractUnaryHybridCF<T, UnsignedLongType> implements Convert.Uint64
@@ -535,7 +535,7 @@ public void compute(final C input, final Unsigned128BitType output) {
535535
}
536536

537537
@Plugin(type = Ops.Convert.Uint128.class, name = Ops.Convert.Uint128.NAME,
538-
priority = Priority.HIGH_PRIORITY)
538+
priority = Priority.HIGH)
539539
public static class IntegerToUint128<T extends IntegerType<T>> extends
540540
AbstractUnaryHybridCF<T, Unsigned128BitType> implements Convert.Uint128
541541
{

src/main/java/net/imagej/ops/copy/CopyArrayImg.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @author Christian Dietz (University of Konstanz)
4949
* @param <T>
5050
*/
51-
@Plugin(type = Ops.Copy.Img.class, priority = Priority.VERY_HIGH_PRIORITY)
51+
@Plugin(type = Ops.Copy.Img.class, priority = Priority.VERY_HIGH)
5252
public class CopyArrayImg<T extends NativeType<T>, A extends ArrayDataAccess<A>>
5353
extends
5454
AbstractUnaryHybridCF<ArrayImg<T, A>, ArrayImg<T, A>>

src/main/java/net/imagej/ops/copy/CopyLabelingMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* @param <L>
5050
*/
5151
@Plugin(type = Ops.Copy.LabelingMapping.class,
52-
priority = Priority.VERY_HIGH_PRIORITY)
52+
priority = Priority.VERY_HIGH)
5353
public class CopyLabelingMapping<L> extends
5454
AbstractUnaryHybridCF<LabelingMapping<L>, LabelingMapping<L>> implements
5555
Ops.Copy.LabelingMapping {

src/main/java/net/imagej/ops/create/img/CreateImgFromII.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* @author Curtis Rueden
4848
* @param <T>
4949
*/
50-
@Plugin(type = Ops.Create.Img.class, priority = Priority.HIGH_PRIORITY + 1)
50+
@Plugin(type = Ops.Create.Img.class, priority = Priority.HIGH + 1)
5151
public class CreateImgFromII<T extends NativeType<T>> extends
5252
UFViaUFSameIO<IterableInterval<T>, Img<T>> implements Ops.Create.Img
5353
{

src/main/java/net/imagej/ops/create/img/CreateImgFromImg.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* @author Curtis Rueden
4747
* @param <T>
4848
*/
49-
@Plugin(type = Ops.Create.Img.class, priority = Priority.VERY_HIGH_PRIORITY)
49+
@Plugin(type = Ops.Create.Img.class, priority = Priority.VERY_HIGH)
5050
public class CreateImgFromImg<T extends Type<T>> extends
5151
AbstractUnaryFunctionOp<Img<T>, Img<T>> implements Ops.Create.Img
5252
{

src/main/java/net/imagej/ops/create/img/CreateImgFromRAI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @author Curtis Rueden
4949
* @param <T>
5050
*/
51-
@Plugin(type = Ops.Create.Img.class, priority = Priority.HIGH_PRIORITY)
51+
@Plugin(type = Ops.Create.Img.class, priority = Priority.HIGH)
5252
public class CreateImgFromRAI<T extends NativeType<T>> extends
5353
UFViaUFSameIO<RandomAccessibleInterval<T>, Img<T>> implements
5454
Ops.Create.Img

src/main/java/net/imagej/ops/create/imgFactory/CreateImgFactoryFromImg.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*@author Curtis Rueden
4444
* @param <T>
4545
*/
46-
@Plugin(type = Ops.Create.ImgFactory.class, priority = Priority.HIGH_PRIORITY)
46+
@Plugin(type = Ops.Create.ImgFactory.class, priority = Priority.HIGH)
4747
public class CreateImgFactoryFromImg<T> extends
4848
AbstractUnaryFunctionOp<Img<T>, ImgFactory<T>> implements
4949
Ops.Create.ImgFactory

0 commit comments

Comments
 (0)