cc9961c24850d70ae7ef5379cea9367a41da683c
[idea/community.git] / java / java-tests / testData / codeInsight / daemonCodeAnalyzer / quickFix / anonymous2lambdaAlternative / beforeThread.java
1 // "Replace anonymous class with constructor accepting lambda" "true"
2 public class Main {
3   public void testThread() {
4     new <caret>Thread() {
5       // Comment outside
6       @Override
7       public void run() {
8         // Comment inside
9         System.out.println("Hello from thread!");
10       }
11       // Ending comment
12     }.start();
13   }
14 }