mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
ConvertToLocalInspection: changed quick-fix to explicitly show type of code block where field is used (IDEA-CR-42222)
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert field to local variable in method 'IntelliJBugConvertToLocal'" "true"
|
||||
// "Convert field to local variable in constructor" "true"
|
||||
import java.util.ArrayList;
|
||||
|
||||
class ITest {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert field to local variable in method 'Test'" "true"
|
||||
// "Convert field to local variable in constructor" "true"
|
||||
class Test {
|
||||
|
||||
public Test(String param) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local" "true"
|
||||
// "Convert field to local variable in initializer section" "true"
|
||||
class TestInitializer {
|
||||
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert field to local variables in 2 methods" "true"
|
||||
// "Convert to local" "true"
|
||||
class Test {
|
||||
|
||||
int getFoo1() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert field to local variable in method 'FieldCanBeLocalTest'" "true"
|
||||
// "Convert field to local variable in constructor" "true"
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert field to local variable in method 'IntelliJBugConvertToLocal'" "true"
|
||||
// "Convert field to local variable in constructor" "true"
|
||||
import java.util.ArrayList;
|
||||
|
||||
class ITest {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert field to local variable in method 'Test'" "true"
|
||||
// "Convert field to local variable in constructor" "true"
|
||||
class Test {
|
||||
|
||||
private final String f<caret>ield;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local" "true"
|
||||
// "Convert field to local variable in initializer section" "true"
|
||||
class TestInitializer {
|
||||
|
||||
private boolean fie<caret>ld;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert field to local variables in 2 methods" "true"
|
||||
// "Convert to local" "true"
|
||||
class Test {
|
||||
private int my<caret>Foo;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local" "false"
|
||||
// "Fix all 'Field can be local' problems in file" "false"
|
||||
class MyClassTest {
|
||||
|
||||
private boolean edit<caret>able = false;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert field to local variable in method 'FieldCanBeLocalTest'" "true"
|
||||
// "Convert field to local variable in constructor" "true"
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local" "false"
|
||||
// "Fix all 'Field can be local' problems in file" "false"
|
||||
class TestFieldConversion
|
||||
{
|
||||
private static int som<caret>eInt = 0;
|
||||
|
||||
Reference in New Issue
Block a user