mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
14 lines
324 B
Java
14 lines
324 B
Java
// "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);
|
|
}
|
|
}
|