// "Replace with 'replaceAll()' 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 (Map.Entry entry : map.entrySet()) { map.put(entry.getKey(), entry.getValue()); } } }