Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/anonymous2lambdaAlternative/beforeThread.java
2017-04-19 22:06:58 +02:00

14 lines
329 B
Java

// "Replace with new Thread() with lambda argument" "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();
}
}