mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 18:17:08 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
13 lines
300 B
Java
13 lines
300 B
Java
// "Replace with 'replaceAll()' call" "true"
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
class Main {
|
|
public void test() {
|
|
Map<String, String> map = new HashMap<>();
|
|
String defaultValue = "42";
|
|
map.put("foo", "bar");
|
|
map.replaceAll((k, v) -> k + defaultValue + "baz");
|
|
}
|
|
} |