Skip to content

Commit 93afe81

Browse files
author
Vincent Potucek
committed
EmptyControlStatement: CheckThreadSafetyMojo
1 parent 96efade commit 93afe81

File tree

1 file changed

+5
-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

+5
-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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ 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 e) {
101+
throw new RuntimeException(e);
102+
}
99103
}
100104
for (int j = 0; j < 10 * 1000; j++) {
101105
try {

0 commit comments

Comments
 (0)