⚡ 优化, map init size 4

This commit is contained in:
冷冷 committed 2020-03-25 12:10:14 +08:00
1 parent 778aa9431f
commit d06618ae36
1 file changed
+1 -1
@@ -149,7 +149,7 @@ public class ActTaskServiceImpl implements ActTaskService {
Authentication.setAuthenticatedUserId(SecurityUtils.getUser().getUsername());
taskService.addComment(taskId, processInstanceId, message);
Map<String, Object> variables = new HashMap<>(1);
Map<String, Object> variables = new HashMap<>(4);
variables.put("flag", leaveBillDto.getTaskFlag());
variables.put("days", leaveBillDto.getDays());