fxleyu / cu-cafes

This is a repository of Java. And CU is a cafes unders downstairs.
2 stars 0 forks source link

[问题] 多 if 分支优化 #46

Open fxleyu opened 6 years ago

fxleyu commented 6 years ago

业务代码中大量这类似于如下的代码

if (shouldDoSomething()) {
    sirector.start(event);
    do = true;
}