mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 18:50:59 +07:00
18 lines
404 B
Java
18 lines
404 B
Java
// "Replace with new Thread(() -> {…})" "false"
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
public class Main {
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@interface Anno{}
|
|
|
|
public void testThread() {
|
|
new <caret>Thread() {
|
|
@Override
|
|
@Anno
|
|
public void run() {
|
|
System.out.println("Hello from thread! "+x);
|
|
}
|
|
}.start();
|
|
}
|
|
} |