Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/anonymous2lambdaAlternative/beforeThread.java
2017-05-02 20:47:50 +02:00

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();
}
}