mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 04:22:09 +08:00
refactor 替换为hutool包
This commit is contained in:
@@ -111,8 +111,6 @@ public class FlowExecutor {
|
||||
|
||||
public LiteflowResponse<Slot> execute(String chainId, Object param, Class<? extends Slot> slotClazz, Integer slotIndex,
|
||||
boolean isInnerChain) throws Exception {
|
||||
Slot slot = null;
|
||||
|
||||
if (FlowBus.needInit()) {
|
||||
init();
|
||||
}
|
||||
@@ -133,8 +131,8 @@ public class FlowExecutor {
|
||||
throw new NoAvailableSlotException("there is no available slot");
|
||||
}
|
||||
|
||||
slot = DataBus.getSlot(slotIndex);
|
||||
if (slot == null) {
|
||||
Slot slot = DataBus.getSlot(slotIndex);
|
||||
if (ObjectUtil.isNull(slot)) {
|
||||
throw new NoAvailableSlotException("the slot is not exist");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user