mirror of
https://gitee.com/dromara/hutool.git
synced 2025-07-30 22:10:27 +08:00
fix code
This commit is contained in:
parent
b300e449a1
commit
1e322e6355
@ -169,7 +169,7 @@ public class CombinationAnnotationElement implements AnnotatedElement, Serializa
|
||||
annotationType = annotation.annotationType();
|
||||
if (!META_ANNOTATIONS.contains(annotationType)
|
||||
// issue#I5FQGW@Gitee:跳过元注解和已经处理过的注解,防止递归调用
|
||||
&& !declaredAnnotationMap.containsKey(annotationType)) {
|
||||
&& !annotationMap.containsKey(annotationType)) {
|
||||
if(test(annotation)){
|
||||
annotationMap.put(annotationType, annotation);
|
||||
}
|
||||
|
@ -116,7 +116,6 @@ public class XmlMapper {
|
||||
}
|
||||
|
||||
childEle = (Element) childNode;
|
||||
final Object value = result.get(childEle.getNodeName());
|
||||
final Object newValue;
|
||||
if (childEle.hasChildNodes()) {
|
||||
// 子节点继续递归遍历
|
||||
@ -131,6 +130,7 @@ public class XmlMapper {
|
||||
}
|
||||
|
||||
if (null != newValue) {
|
||||
final Object value = result.get(childEle.getNodeName());
|
||||
if (null != value) {
|
||||
if (value instanceof List) {
|
||||
((List<Object>) value).add(newValue);
|
||||
|
Loading…
Reference in New Issue
Block a user