Files
openide/java/java-tests/testData/inspection/java8MapApi/beforeReplaceAllEntrySetValueAsValue.java
2026-01-16 13:57:13 +00:00

14 lines
340 B
Java

// "Replace with 'replaceAll()' call" "true"
import java.util.HashMap;
import java.util.Map;
public class Main {
public void test() {
Map<String, String> map = new HashMap<>();
map.put("foo", "bar");
for<caret> (Map.Entry<String, String> entry : map.entrySet()) {
map.put(entry.getKey(), entry.getValue());
}
}
}