File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
main/java/org/dataloader/strategy
test/java/org/dataloader/strategy Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33import org .dataloader .DataLoaderRegistry ;
44import org .dataloader .DispatchStrategy ;
5+ import org .dataloader .impl .Assertions ;
56import org .jspecify .annotations .Nullable ;
67
78import java .time .Duration ;
@@ -115,11 +116,11 @@ public static class Builder {
115116 private final ScheduledExecutorService scheduledExecutorService ;
116117
117118 public Builder (ScheduledExecutorService scheduledExecutorService ) {
118- this .scheduledExecutorService = scheduledExecutorService ;
119+ this .scheduledExecutorService = Assertions . nonNull ( scheduledExecutorService ) ;
119120 }
120121
121122 public Builder setFallbackTimeout (Duration fallbackTimeout ) {
122- this .fallbackTimeout = fallbackTimeout ;
123+ this .fallbackTimeout = Assertions . nonNull ( fallbackTimeout ) ;
123124 return this ;
124125 }
125126
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public void setUp() {
3131
3232 @ AfterEach
3333 public void cleanUp () {
34- this .scheduledExecutorService .shutdown ();
34+ this .scheduledExecutorService .shutdownNow ();
3535 }
3636
3737 @ Test
You can’t perform that action at this time.
0 commit comments