提交 d8af9b36 编写于 作者: K Kohsuke Kawaguchi

adding assertion

上级 666f0b47
......@@ -69,6 +69,10 @@ public class AtmostOneTaskExecutor<V> {
}
private synchronized void run() {
// the only situation where we can submit the task for execution
assert inprogress==null;
assert pending!=null;
base.submit(new Callable<Void>() {
@Override
public Void call() throws Exception {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册