Files
openide/jvm/jvm-analysis-java-tests/testData/codeInspection/threadrun/ThreadRunTest.java
Bart van Helvert c2bb202092 [jvm] IDEA-274018 Migrate "ThreadRunInspection" to UAST
GitOrigin-RevId: 7fa2409aefa3718c76f6104ae950a3484b79c322
2021-08-11 09:15:32 +00:00

10 lines
321 B
Java

public class ThreadRunTest {
public void doTest() {
final Runnable runnable = new Runnable() {
public void run() { }
};
final Thread thread = new Thread(runnable);
thread.<warning descr="Calls to 'run()' should probably be replaced with 'start()'">run</warning>();
}
}