Skip to content

Commit fe7042d

Browse files
authored
IWF-569: Annotate getStateOptions as nullable (#291)
1 parent 0e1e4f1 commit fe7042d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/io/iworkflow/core/WorkflowState.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import io.iworkflow.core.communication.Communication;
66
import io.iworkflow.core.persistence.Persistence;
77

8+
import javax.annotation.Nullable;
9+
810
import java.lang.reflect.Method;
911

1012
public interface WorkflowState<I> {
@@ -93,6 +95,7 @@ default String getStateId() {
9395
* - BackoffCoefficient: 2
9496
* @return the optional options
9597
*/
98+
@Nullable
9699
default WorkflowStateOptions getStateOptions() {
97100
return null;
98101
}

0 commit comments

Comments
 (0)