mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
8 lines
384 B
Java
8 lines
384 B
Java
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 {} |