mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-04-09 20:13:16 +08:00
update 优化 代码增加空判断与其他性能优化
This commit is contained in:
@@ -48,7 +48,8 @@ public class StartProcessDTO implements Serializable {
|
||||
|
||||
public Map<String, Object> getVariables() {
|
||||
if (variables == null) {
|
||||
return new HashMap<>(16);
|
||||
variables = new HashMap<>(16);
|
||||
return variables;
|
||||
}
|
||||
variables.entrySet().removeIf(entry -> Objects.isNull(entry.getValue()));
|
||||
return variables;
|
||||
|
||||
Reference in New Issue
Block a user