mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java: Use InlineUtil for removing redundant variable (IDEA-182669)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Move 'return' closer to computation of the value of 'n'" "true"
|
||||
class T {
|
||||
int[] f(int k) {
|
||||
if (k == 1)
|
||||
return new int[]{1};
|
||||
return new int[]{-1};
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Move 'return' closer to computation of the value of 'n'" "true"
|
||||
class T {
|
||||
int[] f(int k) {
|
||||
int[] n = {-1};
|
||||
if (k == 1)
|
||||
n = new int[]{1};
|
||||
<caret>return n;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user