mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
14 lines
319 B
Java
14 lines
319 B
Java
// "Replace with new Thread(() -> {…})" "true"
|
|
public class Main {
|
|
public void testThread() {
|
|
new <caret>Thread() {
|
|
// Comment outside
|
|
@Override
|
|
public void run() {
|
|
// Comment inside
|
|
System.out.println("Hello from thread!");
|
|
}
|
|
// Ending comment
|
|
}.start();
|
|
}
|
|
} |