提交 9220f082 编写于 作者: N Nicolas De Loof

simplify logic to avoid code duplication

上级 817f8dc4
......@@ -433,14 +433,9 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
assert state==State.BUILDING : state;
// result can only get worse
if(result==null) {
if (result==null || r.isWorseThan(result)) {
result = r;
LOGGER.log(FINE, this + " : result is set to " + r, LOGGER.isLoggable(Level.FINER) ? new Exception() : null);
} else {
if(r.isWorseThan(result)) {
LOGGER.log(FINE, this + " : result is set to " + r, LOGGER.isLoggable(Level.FINER) ? new Exception() : null);
result = r;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册