Skip to content

Commit 9bcebd9

Browse files
committed
Parameter: update initializer() documentation
1 parent 178cae7 commit 9bcebd9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/scijava/plugin/Parameter.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@
116116
/** Defines a key to use for saving the value persistently. */
117117
String persistKey() default "";
118118

119-
/** Defines a function that is called to initialize the parameter. */
119+
/**
120+
* Defines a function that is called to initialize the parameter. If an
121+
* initializer is defined, it takes precedence over {@link #persist()}, i.e.
122+
* the parameter is not persisted even if {@code persist=true} is set.
123+
*/
120124
String initializer() default "";
121125

122126
/**

0 commit comments

Comments
 (0)