From 4b878f9ba996f852ce555c3024512ae34e34774e Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 23 May 2014 04:07:39 +0200 Subject: Added confkey to make @NonNull generate a different exception because of the IllegalArgumentException vs. NullPointerException that we really don’t want to get into. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/features/NonNull.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'website/features/NonNull.html') diff --git a/website/features/NonNull.html b/website/features/NonNull.html index 0e7d064d..4a98504a 100644 --- a/website/features/NonNull.html +++ b/website/features/NonNull.html @@ -42,6 +42,8 @@

Supported configuration keys:

+
lombok.nonNull.exceptionType = [fully qualified name of an exception] (default: java.lang.NullPointerException). +
When lombok generates a null-check if statement, an exception is thrown, with the parameter / field name as message. By default, this will be a java.lang.NullPointerException, but you can for example put java.lang.IllegalArgumentException in this configuration key to have lombok throw a different exception.
lombok.nonNull.flagUsage = [warning | error] (default: not set)
Lombok will flag any usage of @NonNull as a warning or error if configured.
-- cgit