blob: 5cc73ff31ab976f949637b1e8f9b2c08bb5217a7 [file]
// "Replace with 'replaceAll' method call" "true"
import java.util.HashMap;
import java.util.Map;
class Main {
public void test() {
Map<String, String> map = new HashMap<>();
String defaultValue = "42";
map.put("foo", "bar");
for<caret> (String key : map.keySet()) {
map.put(key, key + defaultValue + "baz");
}
}
}