Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/anonymous2lambdaAlternative/beforeThread.java

14 lines
340 B
Java

// "Replace anonymous class with constructor accepting lambda" "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();
}
}