Skip to content

Commit af8b0a7

Browse files
committed
optimize
1 parent cc3ec30 commit af8b0a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-data-aggregator-core/src/main/java/io/github/lvyahui8/spring/aggregate/service/impl/DataBeanAggregateQueryServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public <T> T get(String id, Map<String, Object> invokeParams, Class<T> resultTyp
4343
Assert.isTrue(repository.contains(id),"id not exisit");
4444
long startTime = System.currentTimeMillis();
4545
DataProvideDefination provider = repository.get(id);
46-
Map<String,Object> dependObjectMap = new HashMap<>();
46+
Map<String,Object> dependObjectMap = new HashMap<>(provider.getDepends().size());
4747
if(provider.getDepends() != null && ! provider.getDepends().isEmpty()) {
4848
CountDownLatch stopDownLatch = new CountDownLatch(provider.getDepends().size());
4949
Map<String,Future<?>> futureMap = new HashMap<>(provider.getDepends().size());

0 commit comments

Comments
 (0)