From a24bf3194477a841c905827ef625e19b0fd53b2a Mon Sep 17 00:00:00 2001
From: Reinier Zwitserloot @Data
and other method-generating lombok annotations will trigger on any annotation named @NonNull
regardless of casing or package name, this feature only triggers on lombok's own @NonNull
annotation from the lombok
package.
A @NonNull
on a primitive parameter results in a warning. No null-check will be generated.
+
+ A @NonNull
on a parameter of an abstract method used to generate a warning; starting with version 1.16.8, this is no longer the case, to acknowledge the notion that @NonNull
also has a documentary role. For the same reason, you can annotate a method as @NonNull
; this is allowed, generates no warning, and does not generate any code.