allow to inline array definition when accessExpression is used for write; exclude new expressions

This commit is contained in:
Anna Kozlova
2013-06-20 21:16:00 +04:00
parent 875c28089f
commit 2e36ae1088
5 changed files with 29 additions and 3 deletions
@@ -0,0 +1,11 @@
public class A {
public void testInlineRefactoring() {
int[] array = ar();
arr<caret>ay[1] = 22;
}
private int[] ar() {
return new int[0];
}
}
@@ -0,0 +1,10 @@
public class A {
public void testInlineRefactoring() {
ar()[1] = 22;
}
private int[] ar() {
return new int[0];
}
}