diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-10-25 15:01:28 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-10-25 15:01:28 +0200 |
commit | 782daa49979c35cd93139b3cfbc98eafe346f790 (patch) | |
tree | a8f81b23c872fd76164b2d83f6a0448dca529745 /website | |
parent | c402dd86379e532895f73ee209c432f84bb5f421 (diff) | |
download | lombok-782daa49979c35cd93139b3cfbc98eafe346f790.tar.gz lombok-782daa49979c35cd93139b3cfbc98eafe346f790.tar.bz2 lombok-782daa49979c35cd93139b3cfbc98eafe346f790.zip |
Again made @NotNull have no special meaning.
See issues 43, 271, and 287.
Diffstat (limited to 'website')
-rw-r--r-- | website/features/Data.html | 2 | ||||
-rw-r--r-- | website/features/GetterSetter.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/website/features/Data.html b/website/features/Data.html index 03f6eb2a..e54b2de6 100644 --- a/website/features/Data.html +++ b/website/features/Data.html @@ -21,7 +21,7 @@ and <a href="Constructor.html"><code>@RequiredArgsConstructor</code></a> together: In other words, <code>@Data</code> generates <em>all</em> the boilerplate that is normally associated with simple POJOs (Plain Old Java Objects) and beans: getters for all fields, setters for all non-final fields, and appropriate <code>toString</code>, <code>equals</code> and <code>hashCode</code> implementations that involve the fields of the class, and a constructor that - initializes all final fields, as well as all non-final fields with no initializer that have been marked with <code>@NonNull</code> or <code>@NotNull</code>, + initializes all final fields, as well as all non-final fields with no initializer that have been marked with <code>@NonNull</code>, in order to ensure the field is never null. </p><p> <code>@Data</code> is like having implicit <code>@Getter</code>, <code>@Setter</code>, <code>@ToString</code>, <code>@EqualsAndHashCode</code> and <code>@RequiredArgsConstructor</code> diff --git a/website/features/GetterSetter.html b/website/features/GetterSetter.html index 51a1f514..3e3530ef 100644 --- a/website/features/GetterSetter.html +++ b/website/features/GetterSetter.html @@ -58,7 +58,7 @@ Any variation on <code>boolean</code> will <em>not</em> result in using the <code>is</code> prefix instead of the <code>get</code> prefix; for example, returning <code>java.lang.Boolean</code> results in a <code>get</code> prefix, not an <code>is</code> prefix. </p><p> - Any annotations named <code>@NonNull</code> or <code>@NotNull</code> (case insensitive) on the field are interpreted as: This field must not ever hold + Any annotations named <code>@NonNull</code> (case insensitive) on the field are interpreted as: This field must not ever hold <em>null</em>. Therefore, these annotations result in an explicit null check in the generated setter. Also, these annotations (as well as any annotation named <code>@Nullable</code> or <code>@CheckForNull</code>) are copied to setter parameter and getter method. </p><p> |