mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
method reference: ignore already handled exceptions (IDEA-137694)
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
import java.io.IOException;
|
||||
|
||||
class MethodReferenceErrorHighlight {
|
||||
{
|
||||
match(String.class, this::foo);
|
||||
}
|
||||
|
||||
<P> void match(final Class<P> type, UnitApply<P> apply) {}
|
||||
void foo(String s) throws IOException { throw new IOException(); }
|
||||
}
|
||||
|
||||
interface UnitApply<I> {
|
||||
void apply(I i) throws Exception;
|
||||
}
|
||||
Reference in New Issue
Block a user