mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-11 08:36:57 +07:00
11 lines
286 B
Java
11 lines
286 B
Java
// "Replace with 'merge' method call" "true"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public void testMerge(Map<String, Integer> map, String key, int max) {
|
|
/*get!*/
|
|
// check
|
|
/*get max*/
|
|
map.merge(key, /* passed max value */ max, Math::max)
|
|
}
|
|
} |