mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 17:38:08 +07:00
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
10 lines
214 B
Java
10 lines
214 B
Java
// "Remove 'contains()' check" "true-preview"
|
|
import java.util.List;
|
|
|
|
class Test {
|
|
void test(List<String> list, String key) {
|
|
if(key != null && list.co<caret>ntains(key)) {
|
|
list.remove(key);
|
|
}
|
|
}
|
|
} |