// "Replace with 'replaceAll' method call" "true" import java.util.HashMap; import java.util.Map; public class Main { public void test() { Map map = new HashMap<>(); map.put("foo", "bar"); for (String key : map.keySet()) { map.put(key, map.get(key)); } } }