blob: c9fe6a369329051913181f038a0d0125d9095bc8 [file]
// "Replace with 'replaceAll' method call" "true"
import java.util.Map;
public class Main {
public static void main(String[] args) {
Map<String, String> vals = new HashMap<>();
vals.put("foo", "bar");
String defaultValue = "42";
for<caret> (Entry entry : vals.entrySet()) {
vals.put(entry.getKey(), defaultValue);
}
}
}