diff options
author | Roel Spilker <r.spilker@gmail.com> | 2014-02-27 23:29:02 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2014-02-27 23:29:02 +0100 |
commit | 0bd2425b29b3433f8d4b3a9d662119a5430ef183 (patch) | |
tree | 2bea5af945a8d14a728a367dcca9ea4b43f16246 /website | |
parent | 6d37333f2df7f0b637939f1f66adcb79c595f1d0 (diff) | |
download | lombok-0bd2425b29b3433f8d4b3a9d662119a5430ef183.tar.gz lombok-0bd2425b29b3433f8d4b3a9d662119a5430ef183.tar.bz2 lombok-0bd2425b29b3433f8d4b3a9d662119a5430ef183.zip |
Fixed documentation of @RequiredArgsConstructor (Issue 593)
Diffstat (limited to 'website')
-rw-r--r-- | website/features/Constructor.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/website/features/Constructor.html b/website/features/Constructor.html index cdd5b4e2..272df06e 100644 --- a/website/features/Constructor.html +++ b/website/features/Constructor.html @@ -22,7 +22,7 @@ fulfilled until those fields are properly initialized later. Certain java constructs, such as hibernate and the Service Provider Interface require a no-args constructor. This annotation is useful primarily in combination with either <code>@Data</code> or one of the other constructor generating annotations. </p><p> - <code>@RequiredArgsConstructor</code> generates a constructor with 1 parameter for each field that requires special handling. All <code>final</code> fields get a parameter, + <code>@RequiredArgsConstructor</code> generates a constructor with 1 parameter for each field that requires special handling. All non-initialized <code>final</code> fields get a parameter, as well as any fields that are marked as <code>@NonNull</code> that aren't initialized where they are declared. For those fields marked with <code>@NonNull</code>, an explicit null check is also generated. The constructor will throw a <code>NullPointerException</code> if any of the parameters intended for the fields marked with <code>@NonNull</code> contain <code>null</code>. The order of the parameters match the order in which the fields appear in your class. |