mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 22:11:40 +07:00
Remove variable -> Remove local variable
GitOrigin-RevId: 3d20d29f9b7e2f0a3a989991af2788572449b0de
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dbc4ff53e2
commit
6e8742ed2a
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'oo'" "true"
|
||||
// "Remove local variable 'oo'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'oo'" "true"
|
||||
// "Remove local variable 'oo'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o1'" "true"
|
||||
// "Remove local variable 'o1'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o1'" "true"
|
||||
// "Remove local variable 'o1'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o1'" "true"
|
||||
// "Remove local variable 'o1'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o'" "true"
|
||||
// "Remove local variable 'o'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o'" "true"
|
||||
// "Remove local variable 'o'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o'" "true"
|
||||
// "Remove local variable 'o'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'oo'" "true"
|
||||
// "Remove local variable 'oo'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'oo'" "true"
|
||||
// "Remove local variable 'oo'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'c'" "true"
|
||||
// "Remove local variable 'c'" "true"
|
||||
class C {
|
||||
String s;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'n'" "true"
|
||||
// "Remove local variable 'n'" "true"
|
||||
class C {
|
||||
void foo(Object o) {
|
||||
if (o instanceof Integer) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo = null;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo = null;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo() {return null;}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo() {return null;}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo = null;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo = null;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo() {return null;}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo() {return null;}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'foo'" "true"
|
||||
// "Remove local variable 'foo'" "true"
|
||||
class a {
|
||||
private int refactorTest(int i) {
|
||||
int bar = 0;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
public class Main {
|
||||
void test(String s) {
|
||||
foo(1);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import org.jetbrains.annotations.Contract;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
public class Main {
|
||||
int test(String s) {
|
||||
return switch(s) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
public class Main {
|
||||
void test(String s) {
|
||||
switch(s) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'oo'" "true"
|
||||
// "Remove local variable 'oo'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'oo'" "true"
|
||||
// "Remove local variable 'oo'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o1'" "true"
|
||||
// "Remove local variable 'o1'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o1'" "true"
|
||||
// "Remove local variable 'o1'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o1'" "true"
|
||||
// "Remove local variable 'o1'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o'" "true"
|
||||
// "Remove local variable 'o'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o'" "true"
|
||||
// "Remove local variable 'o'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'o'" "true"
|
||||
// "Remove local variable 'o'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "false"
|
||||
// "Remove local variable 'i'" "false"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'oo'" "true"
|
||||
// "Remove local variable 'oo'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'oo'" "true"
|
||||
// "Remove local variable 'oo'" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'c'" "true"
|
||||
// "Remove local variable 'c'" "true"
|
||||
class C {
|
||||
String s;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'n'" "true"
|
||||
// "Remove local variable 'n'" "true"
|
||||
class C {
|
||||
void foo(Object o) {
|
||||
if (o instanceof Integer) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo = null;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo = null;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo() {return null;}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo() {return null;}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo = null;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo = null;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo() {return null;}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'problematic'" "true"
|
||||
// "Remove local variable 'problematic'" "true"
|
||||
class C {
|
||||
Object foo() {return null;}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'foo'" "true"
|
||||
// "Remove local variable 'foo'" "true"
|
||||
class a {
|
||||
private int refactorTest(int i) {
|
||||
int f<caret>oo = 0;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
public class Main {
|
||||
void test(String s) {
|
||||
int <caret>i;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
import org.jetbrains.annotations.Contract;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
public class Main {
|
||||
int test(String s) {
|
||||
int <caret>i;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove variable 'i'" "true"
|
||||
// "Remove local variable 'i'" "true"
|
||||
public class Main {
|
||||
void test(String s) {
|
||||
int <caret>i;
|
||||
|
||||
Reference in New Issue
Block a user