aboutsummaryrefslogtreecommitdiff
path: root/website/features
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-10-05 21:58:00 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-10-05 21:58:00 +0200
commite94a5f9ee3e003c6b889168796bc010072177d14 (patch)
tree8ab3e6627b168738ae8a9626044379551ceebb45 /website/features
parent264c66b53f29c49238ada2c4b93d91b0a5bc9b41 (diff)
downloadlombok-e94a5f9ee3e003c6b889168796bc010072177d14.tar.gz
lombok-e94a5f9ee3e003c6b889168796bc010072177d14.tar.bz2
lombok-e94a5f9ee3e003c6b889168796bc010072177d14.zip
[Fixes #807] The NonNull annotation can now be used documentary style on params of abstract methods. The warning has been eliminated.
Diffstat (limited to 'website/features')
-rw-r--r--website/features/NonNull.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/website/features/NonNull.html b/website/features/NonNull.html
index d62441f4..50acf627 100644
--- a/website/features/NonNull.html
+++ b/website/features/NonNull.html
@@ -15,7 +15,7 @@
<div class="overview">
<h3>Overview</h3>
<p>
- <em>NEW in Lombok 0.11.10: </em>You can use <code>@NonNull</code> on the parameter of a method or constructor to have lombok generate a null-check statement for you.
+ <em>NEW in Lombok 0.11.10: </em>You can use <code>@NonNull</code> on the parameter of a method or constructor to have lombok generate a null-check statement for you.<br />
</p><p>
Lombok has always treated any annotation named <code>@NonNull</code> on a field as a signal to generate a null-check if lombok generates an entire method or constructor for you, via
for example <a href="Data.html"><code>@Data</code></a>. Now, however, using lombok's own <code>@lombok.NonNull</code> on a parameter results in the insertion of just the null-check
@@ -60,6 +60,9 @@
this feature only triggers on lombok's own <code>@NonNull</code> annotation from the <code>lombok</code> package.
</p><p>
A <code>@NonNull</code> on a primitive parameter results in a warning. No null-check will be generated.
+ </p><p>
+ A <code>@NonNull</code> 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 <code>@NonNull</code> also has a
+ documentary role. For the same reason, you can annotate a method as <code>@NonNull</code>; this is allowed, generates no warning, and does not generate any code.
</p>
</div>
</div>