IDEA-126173 Specify exception type thrown by @NotNull annotations

This commit is contained in:
peter
2014-07-18 09:14:07 +02:00
parent f4d3703103
commit a7ec8b7660
9 changed files with 118 additions and 50 deletions
@@ -0,0 +1,8 @@
import org.jetbrains.annotations.*;
class Test {
public void foo(@NotNull(exception = NullPointerException.class) String a) { }
public void foo2(@NotNull(exception = <warning descr="Custom exception class should have a constructor with a single message parameter of String type">CustomException.class</warning>) String a) { }
}
class CustomException extends Exception {}