blob: 2ee73f2e2e8fd568c5ebab0c2e56056327c37679 [file]
// "Replace with 'replaceAll' method call" "true"
import java.util.HashMap;
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";
vals.replaceAll((k, v) -> defaultValue);
}
}