mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 04:15:06 +00:00
Explicitly recommend against prefixes
This commit is contained in:
1 parent
dc56309dad
commit
2baefe08ce
1 file changed
+3
@@ -160,6 +160,9 @@ public @interface Builder {
|
||||
*
|
||||
* For example, a method normally generated as {@code someField(String someField)} would instead be generated as {@code withSomeField(String someField)}
|
||||
*
|
||||
* Note that using "with" to prefix builder setter methods is strongly discouraged as as "with" normally
|
||||
* suggests immutable data structures, and builders by definition are mutable objects.
|
||||
*
|
||||
* @return The prefix to prepend to generated method names.
|
||||
*/
|
||||
String setterPrefix() default "";
|
||||
|
||||
Reference in new issue
Block a user