mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-205482 "Use removal by object" fix may change semantics for List<Integer>
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Use removal by object" "true"
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
void test(List<Integer> list, int key) {
|
||||
list.remove((Integer) key);
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Use removal by object" "true"
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
void test(List<Integer> list, int key) {
|
||||
int idx = list.indexOf(key);
|
||||
list.r<caret>emove(idx);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user