From d53cec7235932b0cfdad41cb55b9df17444dde1a Mon Sep 17 00:00:00 2001 From: twelvet <2471835953@qq.com> Date: Sun, 26 Nov 2023 15:40:48 +0800 Subject: [PATCH] LocalVariableTableParameterNameDiscoverer for removal --- .../plugin/idempotent/expression/ExpressionResolver.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolver.java b/src/main/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolver.java index b0b55d1..09b1b19 100644 --- a/src/main/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolver.java +++ b/src/main/java/com/pig4cloud/plugin/idempotent/expression/ExpressionResolver.java @@ -5,16 +5,17 @@ * @date 2020/9/25 */ -import java.lang.reflect.Method; - import com.pig4cloud.plugin.idempotent.annotation.Idempotent; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.reflect.MethodSignature; -import org.springframework.core.LocalVariableTableParameterNameDiscoverer; +import org.springframework.core.DefaultParameterNameDiscoverer; +import org.springframework.core.ParameterNameDiscoverer; import org.springframework.expression.Expression; import org.springframework.expression.spel.standard.SpelExpressionParser; import org.springframework.expression.spel.support.StandardEvaluationContext; +import java.lang.reflect.Method; + /** * @author lengleng *

@@ -25,7 +26,7 @@ public class ExpressionResolver implements KeyResolver { private static final SpelExpressionParser PARSER = new SpelExpressionParser(); - private static final LocalVariableTableParameterNameDiscoverer DISCOVERER = new LocalVariableTableParameterNameDiscoverer(); + private static final ParameterNameDiscoverer DISCOVERER = new DefaultParameterNameDiscoverer(); @Override public String resolver(Idempotent idempotent, JoinPoint point) {