mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 21:44:49 +07:00
remove variable: do not leave tailing loops/ifs (IDEA-124489)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Remove variable 'foo'" "true"
|
||||
class a {
|
||||
private int refactorTest(int i) {
|
||||
int bar = 0;
|
||||
if (i >0) ;
|
||||
return bar;
|
||||
}
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Remove variable 'foo'" "true"
|
||||
class a {
|
||||
private int refactorTest(int i) {
|
||||
int f<caret>oo = 0;
|
||||
int bar = 0;
|
||||
if (i >0) foo++;
|
||||
return bar;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user