Skip to content

Commit 3268140

Browse files
committed
SaveInputsPreprocessor: fix priority declaration
Technically, it worked fine as written because the declared priority matched the PRIORITY constant. But it is more correct for the class to use its own priority constant explicitly. In case that constant value ever changes (although changing it would break backwards compatibility due to the Java compiler inlining constants), we want to avoid any chance of skew between the constant and the actually declared priority.
1 parent 6db6604 commit 3268140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/module/process/SaveInputsPreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @author Curtis Rueden
5252
*/
5353
@Plugin(type = PreprocessorPlugin.class,
54-
priority = Priority.VERY_LOW - 1)
54+
priority = SaveInputsPreprocessor.PRIORITY)
5555
public class SaveInputsPreprocessor extends AbstractPreprocessorPlugin {
5656

5757
public static final double PRIORITY = Priority.VERY_LOW - 1;

0 commit comments

Comments
 (0)