Reputation: 310872
I have a project that uses @NotNull
and @CanBeNull
annotations.
The tests pass when run from Maven, but some unit tests fail when run from IntelliJ with:
Unexpected exception, expected
java.lang.NullPointerException
but wasjava.lang.IllegalArgumentException
It seems IntelliJ is adding code to verify the annotation's claims at run-time.
How can I disable this?
Upvotes: 1
Views: 277