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
6f8c237db6
commit
92c249c320
@ -281,7 +281,7 @@ public class HierarchicalAnnotatedElements implements AnnotatedElement, Iterable
|
|||||||
*/
|
*/
|
||||||
public final Set<AnnotatedElement> getElementMappings() {
|
public final Set<AnnotatedElement> getElementMappings() {
|
||||||
initElementMappingsIfNecessary();
|
initElementMappingsIfNecessary();
|
||||||
return SetUtil.view(this.elementMappings);
|
return this.elementMappings;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -322,7 +322,7 @@ public class HierarchicalAnnotatedElements implements AnnotatedElement, Iterable
|
|||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (Objects.isNull(elementMappings)) {
|
if (Objects.isNull(elementMappings)) {
|
||||||
final Set<AnnotatedElement> mappings = initElementMappings();
|
final Set<AnnotatedElement> mappings = initElementMappings();
|
||||||
elementMappings = Collections.unmodifiableSet(mappings);
|
elementMappings = SetUtil.view(mappings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user