mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
redundant cast: do not raise if result in bad return type in lambda expression (IDEA-138927)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Test {
|
||||
public void filterByBoolean(Stream<Object[]> stream) {
|
||||
stream.filter(it -> (Boolean) it[0]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user