IDEA-36326 "set" support added

This commit is contained in:
Danila Ponomarenko
2012-05-28 14:55:25 +04:00
parent 2b9358ce84
commit 021ff89aff
4 changed files with 88 additions and 8 deletions
@@ -0,0 +1,9 @@
// "Replace with list access" "true"
import java.util.ArrayList;
class A {
void test(ArrayList<Integer> list) {
list.set(0, 5);
}
}
@@ -0,0 +1,11 @@
// "Replace with list access" "false"
import java.util.ArrayList;
class A {
void test(ArrayList<Integer> list) {
if (lis<caret>t[0] = 5 == 5){
}
}
}
@@ -0,0 +1,9 @@
// "Replace with list access" "true"
import java.util.ArrayList;
class A {
void test(ArrayList<Integer> list) {
lis<caret>t[0] = 5;
}
}