Skip to content

Commit f022ee1

Browse files
authoredMay 5, 2021
CODETOOLS-7902925: jcstress: Fix new Sonar warnings
1 parent 2b7d411 commit f022ee1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎jcstress-core/src/main/java/org/openjdk/jcstress/infra/runners/AbstractThread.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import java.util.concurrent.atomic.AtomicInteger;
2828

29-
public class AbstractThread extends Thread {
29+
public abstract class AbstractThread extends Thread {
3030
private static final AtomicInteger ID = new AtomicInteger();
3131

3232
protected volatile Throwable throwable;
@@ -36,6 +36,9 @@ public AbstractThread() {
3636
setName("jcstress-worker-" + ID.incrementAndGet());
3737
}
3838

39+
@Override
40+
public abstract void run();
41+
3942
public Throwable throwable() { return throwable; }
4043

4144
}

0 commit comments

Comments
 (0)