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