mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
fix code
This commit is contained in:
parent
06c27a8cfe
commit
8dab3881f7
@ -345,7 +345,7 @@ public class AnnotationUtil {
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void setValue(
|
||||
final Annotation annotation, final String annotationField, final Object value) {
|
||||
InvocationHandler invocationHandler = Proxy.getInvocationHandler(annotation);
|
||||
final InvocationHandler invocationHandler = Proxy.getInvocationHandler(annotation);
|
||||
String memberAttributeName = JDK_MEMBER_ATTRIBUTE;
|
||||
// Spring合成注解
|
||||
if (CharSequenceUtil.contains(invocationHandler.getClass().getName(), SPRING_INVOCATION_HANDLER)) {
|
||||
@ -355,7 +355,7 @@ public class AnnotationUtil {
|
||||
else if (invocationHandler instanceof AnnotationMappingProxy) {
|
||||
memberAttributeName = HUTOOL_MEMBER_ATTRIBUTE;
|
||||
}
|
||||
Map<String, Object> memberValues = (Map<String, Object>) FieldUtil.getFieldValue(invocationHandler, memberAttributeName);
|
||||
final Map<String, Object> memberValues = (Map<String, Object>) FieldUtil.getFieldValue(invocationHandler, memberAttributeName);
|
||||
memberValues.put(annotationField, value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user