mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
redundant cast: ignore for lambda casts with serializable/intersections (IDEA-105839)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import java.io.*;
|
||||
interface Predicate<T> {
|
||||
boolean test(String s);
|
||||
}
|
||||
class Test {
|
||||
private static boolean test(String s) {
|
||||
return false;
|
||||
}
|
||||
|
||||
{
|
||||
Predicate<String> mh1 = (Predicate<String> & Serializable)Test::test;
|
||||
Predicate<String> mh0 = (<warning descr="Casting 'Test::test' to 'Predicate<String> & Predicate<String>' is redundant">Predicate<String> & Predicate<String></warning>)Test::test;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user