This commit is contained in:
Looly 2023-08-24 22:25:36 +08:00
parent b300e449a1
commit 1e322e6355
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);