unchecked exceptions: check captured wildcards (IDEA-189184)

This commit is contained in:
Anna.Kozlova
2018-04-03 16:53:09 +02:00
parent c8493f4064
commit 5ecee5486b
3 changed files with 40 additions and 3 deletions
@@ -0,0 +1,7 @@
import java.util.function.Supplier;
class MyTest {
public static void main(Supplier<? extends Exception> supplierException) {
<error descr="Unhandled exception: java.lang.Exception">throw supplierException.get();</error>
}
}