mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-12 18:36:52 +07:00
11 lines
262 B
Java
11 lines
262 B
Java
// "Remove 'contains()' check" "true-preview"
|
|
import java.util.List;
|
|
|
|
class Test {
|
|
void test(List<String> list, String key) {
|
|
if(key !=/*nullcheck*/ null && !key./*check*/isEmpty() /*and*/ /*key*/ //line comment
|
|
) {
|
|
list.remove(key);
|
|
}
|
|
}
|
|
} |