mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
11 lines
255 B
Java
11 lines
255 B
Java
// "Replace iteration with bulk 'Map.putAll()' call" "true-preview"
|
|
import java.util.*;
|
|
|
|
class Main {
|
|
void test(Map<String, Integer> map) {
|
|
Map<String, Integer> result = new HashMap<>();
|
|
result.put("answer", 42);
|
|
result.putAll(map);
|
|
}
|
|
}
|