summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/inspection/nullableProblems/NotNullCustomException.java
blob: 42e2798ed1ab0abbf430c4eec169915fa184c675 (plain)
1
2
3
4
5
6
7
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 {}