Skip to content

Commit 86b57c2

Browse files
author
Vincent Potucek
committed
EmptyControlStatement: CheckThreadSafetyMojo
1 parent 96efade commit 86b57c2

File tree

1 file changed

+4
-1
lines changed
  • its/core-it-support/core-it-plugins/maven-it-plugin-active-collection/src/main/java/org/apache/maven/plugin/coreit

1 file changed

+4
-1
lines changed

its/core-it-support/core-it-plugins/maven-it-plugin-active-collection/src/main/java/org/apache/maven/plugin/coreit/CheckThreadSafetyMojo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ public void run() {
9595
getLog().info("[MAVEN-CORE-IT-LOG] Thread " + this + " uses " + tccl);
9696
Thread.currentThread().setContextClassLoader(tccl);
9797
while (go.isEmpty()) {
98-
// wait for start
98+
try {
99+
Thread.sleep(100); // wait for the start
100+
} catch (InterruptedException ignored) {
101+
}
99102
}
100103
for (int j = 0; j < 10 * 1000; j++) {
101104
try {

0 commit comments

Comments
 (0)