mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-11 17:07:15 +07:00
15 lines
352 B
Java
15 lines
352 B
Java
// "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);
|
|
}
|
|
}
|
|
}
|