提交 e3881839 编写于 作者: C Christoph Kutzinski

future#isDone() potentially needs synchronized access (expensive), therefore...

future#isDone() potentially needs synchronized access (expensive), therefore use it as 2nd clause in the AND expression
上级 87fb68a0
......@@ -139,7 +139,7 @@ public abstract class AbstractMavenBuilder implements DelegatingCallable<Result,
for (Future<?> f : futures) {
try {
if(!f.isDone() && !messageReported) {
if(!messageReported && !f.isDone()) {
messageReported = true;
listener.getLogger().println(Messages.MavenBuilder_Waiting());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册