Merge pull request #2984 from showkawa/develop
hi.here 'addAll()' call can be replaced with paramterized constructor call,performance will be better
This commit is contained in:
commit
38f33b4ab7
@ -60,10 +60,8 @@ public class HealthCheckExtendProvider implements BeanFactoryAware {
|
|||||||
for(HealthCheckType type : HealthCheckType.values()){
|
for(HealthCheckType type : HealthCheckType.values()){
|
||||||
origin.add(type.name());
|
origin.add(type.name());
|
||||||
}
|
}
|
||||||
Set<String> processorType = new HashSet<>();
|
Set<String> processorType = new HashSet<>(origin);
|
||||||
Set<String> healthCheckerType = new HashSet<>();
|
Set<String> healthCheckerType = new HashSet<>(origin);
|
||||||
processorType.addAll(origin);
|
|
||||||
healthCheckerType.addAll(origin);
|
|
||||||
|
|
||||||
while(processorIt.hasNext()){
|
while(processorIt.hasNext()){
|
||||||
HealthCheckProcessor processor = processorIt.next();
|
HealthCheckProcessor processor = processorIt.next();
|
||||||
|
Loading…
Reference in New Issue
Block a user