mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
better quick fix name
This commit is contained in:
@@ -52,7 +52,7 @@ public class AnonymousHasLambdaAlternativeInspection extends BaseJavaBatchLocalI
|
||||
new AnonymousLambdaAlternative("java.lang.ThreadLocal", "initialValue", "java.lang.ThreadLocal.withInitial($lambda$)",
|
||||
"ThreadLocal.withInitial()"),
|
||||
new AnonymousLambdaAlternative("java.lang.Thread", "run", "new java.lang.Thread($lambda$)",
|
||||
"new Thread() with lambda argument")
|
||||
"new Thread(() -> {…})")
|
||||
};
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with new Thread() with lambda argument" "true"
|
||||
// "Replace with new Thread(() -> {…})" "true"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
// Comment outside
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with new Thread() with lambda argument" "true"
|
||||
// "Replace with new Thread(() -> {…})" "true"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
new <caret>Thread() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with new Thread() with lambda argument" "false"
|
||||
// "Replace with new Thread(() -> {…})" "false"
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with new Thread() with lambda argument" "false"
|
||||
// "Replace with new Thread(() -> {…})" "false"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
new <caret>Thread() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with new Thread() with lambda argument" "false"
|
||||
// "Replace with new Thread(() -> {…})" "false"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
new <caret>Thread() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with new Thread() with lambda argument" "false"
|
||||
// "Replace with new Thread(() -> {…})" "false"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
new <caret>Thread() {
|
||||
|
||||
Reference in New Issue
Block a user