mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user