mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
Java8MapApiInspection: getOrDefault: precise type check for none expression
This commit is contained in:
@@ -3,7 +3,7 @@ import java.util.Map;
|
||||
|
||||
public class Main {
|
||||
|
||||
public void testGetOrDefault(Map<String, String> map, String key) {
|
||||
public void testGetOrDefault(Map<String, Integer> map, String key) {
|
||||
Integer num = 123;
|
||||
System.out.println(num);
|
||||
num = map.getOrDefault(key, 0);
|
||||
|
||||
Reference in New Issue
Block a user