diff options
author | Jamie White <whitej17@mail.wlu.edu> | 2017-11-09 16:26:17 -0800 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2017-11-10 07:53:15 +0100 |
commit | b1b49e062e5d64877891ecd327c1ffbd00df5636 (patch) | |
tree | 05432c9006e24698d82c325ee238243f104ad80b /website/templates/features | |
parent | 931a77855843e05f6a3da036e6c73f6c4656782b (diff) | |
download | lombok-b1b49e062e5d64877891ecd327c1ffbd00df5636.tar.gz lombok-b1b49e062e5d64877891ecd327c1ffbd00df5636.tar.bz2 lombok-b1b49e062e5d64877891ecd327c1ffbd00df5636.zip |
Add closing parenthesis in constructor.html
Diffstat (limited to 'website/templates/features')
-rw-r--r-- | website/templates/features/constructor.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/website/templates/features/constructor.html b/website/templates/features/constructor.html index 6a12fa2a..716efe5a 100644 --- a/website/templates/features/constructor.html +++ b/website/templates/features/constructor.html @@ -7,7 +7,7 @@ <p> This set of 3 annotations generate a constructor that will accept 1 parameter for certain fields, and simply assigns this parameter to the field. </p><p> - <code>@NoArgsConstructor</code> will generate a constructor with no parameters. If this is not possible (because of final fields), a compiler error will result instead, unless <code>@NoArgsConstructor(force = true</code> is used, then all final fields are initialized with <code>0</code> / <code>false</code> / <code>null</code>. For fields with constraints, such as <code>@NonNull</code> fields, <em>no</em> check is generated,so be aware that these constraints will generally not be 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. + <code>@NoArgsConstructor</code> will generate a constructor with no parameters. If this is not possible (because of final fields), a compiler error will result instead, unless <code>@NoArgsConstructor(force = true)</code> is used, then all final fields are initialized with <code>0</code> / <code>false</code> / <code>null</code>. For fields with constraints, such as <code>@NonNull</code> fields, <em>no</em> check is generated,so be aware that these constraints will generally not be 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 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. </p><p> |