-// "Replace anonymous class with constructor accepting lambda" "true"
+// "Replace with constructor accepting lambda" "true"
public class Main {
public void testThread() {
// Comment outside
-// "Replace anonymous class with ThreadLocal.withInitial" "true"
+// "Replace with ThreadLocal.withInitial" "true"
public class Main {
// comment
ThreadLocal<? extends CharSequence> tlr = ThreadLocal.withInitial(() -> "initial");
-// "Replace anonymous class with constructor accepting lambda" "true"
+// "Replace with constructor accepting lambda" "true"
public class Main {
public void testThread() {
new <caret>Thread() {
-// "Replace anonymous class with ThreadLocal.withInitial" "true"
+// "Replace with ThreadLocal.withInitial" "true"
public class Main {
ThreadLocal<? extends CharSequence> tlr = new Th<caret>readLocal<String>() {
// comment