Files
2026-01-16 13:57:13 +00:00

15 lines
324 B
Java

// "Replace with 'replaceAll()' 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));
}
}
}