mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 04:16:19 +00:00
Moved right parenthesis
This commit is contained in:
1 parent
d13100d6bd
commit
aab7230471
1 file changed
+2
-2
@@ -16,8 +16,8 @@
|
||||
<h3>Overview</h3>
|
||||
<p>
|
||||
You can annotate any field with <code>@Getter</code> and/or <code>@Setter</code>, to let lombok generate the default getter/setter automatically.<br />
|
||||
A default getter simply returns the field, and is named <code>getFoo</code> if the field is called <code>foo</code> (or <code>isFoo</code>)
|
||||
if the field's type is <code>boolean</code>. A default setter is named <code>setFoo</code> if the field is called <code>foo</code>, returns <code>void</code>,
|
||||
A default getter simply returns the field, and is named <code>getFoo</code> if the field is called <code>foo</code> (or <code>isFoo</code>
|
||||
if the field's type is <code>boolean</code>). A default setter is named <code>setFoo</code> if the field is called <code>foo</code>, returns <code>void</code>,
|
||||
and takes 1 parameter of the same type as the field. It simply sets the field to this value.
|
||||
</p><p>
|
||||
The generated getter/setter method will be <code>public</code> unless you explicitly specify an <code>AccessLevel</code>, as shown in the example below.
|
||||
|
||||
Reference in new issue
Block a user