mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
15 lines
369 B
Java
15 lines
369 B
Java
// "Fix all 'Redundant 'Collection' operation' problems in file" "true"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
void test(Map<String, String> map) {
|
|
if (map.isEmpty()) return;
|
|
if (map.isEmpty()) return;
|
|
map.remove("oops");
|
|
map.values().remove("oops");
|
|
if (map.size() > 10) return;
|
|
if (map.size() > 10) return;
|
|
map.clear();
|
|
map.clear();
|
|
}
|
|
} |