mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 18:18:48 +00:00
Fix note on @Getter wrt hasX fields: prefix is actually generated (conforming to beanspec)
This commit is contained in:
1 parent
102e7eafb0
commit
1e64f45b95
1 file changed
+1
-2
@@ -52,8 +52,7 @@
|
||||
will not be generated if there's already a method <code>getFoo(int x)</code> even though it is technically possible to make the method. This caveat
|
||||
exists to prevent confusion. If the generation of a method is skipped for this reason, a warning is emitted instead.
|
||||
</p><p>
|
||||
For <code>boolean</code> fields that start with <code>is</code> or <code>has</code> immediately followed by a title-case letter, nothing is prefixed
|
||||
to generate the getter name.
|
||||
For <code>boolean</code> fields that start with <code>is</code> immediately followed by a title-case letter, nothing is prefixed to generate the getter name.
|
||||
</p><p>
|
||||
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.
|
||||
|
||||
Reference in new issue
Block a user