mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
DfaPsiUtil#tryGenerify: add wildcards if generify fails
GitOrigin-RevId: 82a9e01bb6a6fbb3bd785e3bab2d8a3ebb018420
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7525a48f93
commit
b720fb0c9a
+1
-1
@@ -5,7 +5,7 @@ public class ExampleTest {
|
||||
Map<String, Object> data = doWork();
|
||||
Object value = data.get("name");
|
||||
assertTrue(value instanceof Map);
|
||||
((Map) value).getOrDefault()
|
||||
((Map<?, ?>) value).getOrDefault()
|
||||
}
|
||||
|
||||
native Map<String, Object> doWork();
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import java.util.function.Function;
|
||||
class Test {
|
||||
long test(Object obj) {
|
||||
if (obj instanceof Integer || obj instanceof Long || obj instanceof String) {
|
||||
((Comparable) obj).compareTo()
|
||||
((Comparable<?>) obj).compareTo()
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user