feat:2.6.0 org.apache.commons.lang.StringUtils 替换为 cn.hutool.core.util.StrUtil

This commit is contained in:
lizhongyuan3 2023-12-13 18:38:43 +08:00 committed by byteblogs168
parent 64e94b7055
commit 54d14a840a
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import com.aizuda.easy.retry.client.core.retryer.RetryerInfo;
import com.aizuda.easy.retry.client.core.strategy.ExecutorMethod; import com.aizuda.easy.retry.client.core.strategy.ExecutorMethod;
import com.aizuda.easy.retry.common.core.log.LogUtils; import com.aizuda.easy.retry.common.core.log.LogUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import cn.hutool.core.util.StrUtil;
import org.springframework.aop.support.AopUtils; import org.springframework.aop.support.AopUtils;
import org.springframework.beans.BeansException; import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
@ -77,7 +77,7 @@ public class ExecutorMethodScanner implements Scanner, ApplicationContextAware {
1, 1,
1, 1,
idempotentIdGenerate, idempotentIdGenerate,
StringUtils.EMPTY, StrUtil.EMPTY,
(Class<? extends ExecutorMethod>) executor.getClass(), (Class<? extends ExecutorMethod>) executor.getClass(),
Boolean.TRUE, Boolean.TRUE,
retryCompleteCallback, retryCompleteCallback,

View File

@ -3,7 +3,7 @@ package com.aizuda.easy.retry.client.core.serializer;
import com.aizuda.easy.retry.client.core.RetryArgSerializer; import com.aizuda.easy.retry.client.core.RetryArgSerializer;
import com.caucho.hessian.io.HessianInput; import com.caucho.hessian.io.HessianInput;
import com.caucho.hessian.io.HessianOutput; import com.caucho.hessian.io.HessianOutput;
import org.apache.commons.lang.StringUtils; import cn.hutool.core.util.StrUtil;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
@ -23,7 +23,7 @@ public class HessianSerializer implements RetryArgSerializer {
@Override @Override
public String serialize(Object t) { public String serialize(Object t) {
if (Objects.isNull(t)) { if (Objects.isNull(t)) {
return StringUtils.EMPTY; return StrUtil.EMPTY;
} }
try (ByteArrayOutputStream os = new ByteArrayOutputStream()) { try (ByteArrayOutputStream os = new ByteArrayOutputStream()) {
@ -37,7 +37,7 @@ public class HessianSerializer implements RetryArgSerializer {
@Override @Override
public Object deSerialize(String infoStr, Class aClass, Method method) { public Object deSerialize(String infoStr, Class aClass, Method method) {
if (StringUtils.isBlank(infoStr)) { if (StrUtil.isBlank(infoStr)) {
return null; return null;
} }