mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 23:53:48 +07:00
GitOrigin-RevId: 0ac91b181c4dc245fa839ee3ccb2b0ba501c90bd
15 lines
329 B
Java
15 lines
329 B
Java
// "Replace with 'replaceAll' method call" "false"
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public void test() {
|
|
Map<String, String> map = new HashMap<>();
|
|
|
|
map.put("foo", "bar");
|
|
fo<caret>r (String key : map.keySet()) {
|
|
map.put(key, map == null ? "1" : map.get(key));
|
|
}
|
|
}
|
|
} |