mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-15 20:27:10 +07:00
13 lines
312 B
Java
13 lines
312 B
Java
// "Replace with 'getOrDefault' method call" "true"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
|
|
public void testGetOrDefault(Map<String, String> map, String key) {
|
|
Integer num = 123;
|
|
System.out.println(num);
|
|
num = map.get(key);
|
|
if(num == nu<caret>ll) num = 0;
|
|
System.out.println(num);
|
|
}
|
|
} |