mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java: redundant cast: check inference problems in cast operand
expected type (available after removing type cast) may add bounds for inference variables which would lead to errors after applying the fix GitOrigin-RevId: 24a97411b7175cacabd8e81ed5711509195dfd4d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8d3b5500f9
commit
4b5272c14a
+1
-1
@@ -3,7 +3,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
class Test {
|
||||
private static List<Object> test(List<List> list) {
|
||||
return list.stream().flatMap(List::stream).collect(Collectors.toList());
|
||||
<error descr="Incompatible types. Found: 'java.lang.Object', required: 'java.util.List<java.lang.Object>'">return list.stream().flatMap(List::stream).collect(Collectors.toList());</error>
|
||||
}
|
||||
|
||||
private static List<Object> test1(List<List> list) {
|
||||
|
||||
Reference in New Issue
Block a user