mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
try to make quick fix name more clear
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -50,9 +50,9 @@ public class AnonymousHasLambdaAlternativeInspection extends BaseJavaBatchLocalI
|
||||
|
||||
private static AnonymousLambdaAlternative[] ALTERNATIVES = {
|
||||
new AnonymousLambdaAlternative("java.lang.ThreadLocal", "initialValue", "java.lang.ThreadLocal.withInitial($lambda$)",
|
||||
"ThreadLocal.withInitial"),
|
||||
"ThreadLocal.withInitial()"),
|
||||
new AnonymousLambdaAlternative("java.lang.Thread", "run", "new java.lang.Thread($lambda$)",
|
||||
"constructor accepting lambda")
|
||||
"new Thread() with lambda argument")
|
||||
};
|
||||
|
||||
@NotNull
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with constructor accepting lambda" "true"
|
||||
// "Replace with new Thread() with lambda argument" "true"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
// Comment outside
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with ThreadLocal.withInitial" "true"
|
||||
// "Replace with ThreadLocal.withInitial()" "true"
|
||||
public class Main {
|
||||
// comment
|
||||
ThreadLocal<? extends CharSequence> tlr = ThreadLocal.withInitial(() -> "initial");
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with constructor accepting lambda" "true"
|
||||
// "Replace with new Thread() with lambda argument" "true"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
new <caret>Thread() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with constructor accepting lambda" "false"
|
||||
// "Replace with new Thread() with lambda argument" "false"
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with constructor accepting lambda" "false"
|
||||
// "Replace with new Thread() with lambda argument" "false"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
new <caret>Thread() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with ThreadLocal.withInitial" "true"
|
||||
// "Replace with ThreadLocal.withInitial()" "true"
|
||||
public class Main {
|
||||
ThreadLocal<? extends CharSequence> tlr = new Th<caret>readLocal<String>() {
|
||||
// comment
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with constructor accepting lambda" "false"
|
||||
// "Replace with new Thread() with lambda argument" "false"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
new <caret>Thread() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with constructor accepting lambda" "false"
|
||||
// "Replace with new Thread() with lambda argument" "false"
|
||||
public class Main {
|
||||
public void testThread() {
|
||||
new <caret>Thread() {
|
||||
|
||||
Reference in New Issue
Block a user