mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
6f8c237db6
commit
92c249c320
@ -281,7 +281,7 @@ public class HierarchicalAnnotatedElements implements AnnotatedElement, Iterable
|
||||
*/
|
||||
public final Set<AnnotatedElement> getElementMappings() {
|
||||
initElementMappingsIfNecessary();
|
||||
return SetUtil.view(this.elementMappings);
|
||||
return this.elementMappings;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -322,7 +322,7 @@ public class HierarchicalAnnotatedElements implements AnnotatedElement, Iterable
|
||||
synchronized (this) {
|
||||
if (Objects.isNull(elementMappings)) {
|
||||
final Set<AnnotatedElement> mappings = initElementMappings();
|
||||
elementMappings = Collections.unmodifiableSet(mappings);
|
||||
elementMappings = SetUtil.view(mappings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user