mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
12 lines
364 B
Java
12 lines
364 B
Java
// "Replace iteration with bulk 'Map.putAll()' call" "true-preview"
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
class Main extends HashMap<String, Integer> {
|
|
void test() {
|
|
Map<String, Integer> result = new HashMap<>();
|
|
for (Map.Entry<String, Integer> entry : super.entrySet()) {
|
|
result.pu<caret>t(entry.getKey(), entry.getValue());
|
|
}
|
|
}
|
|
} |