Explicitly recommend against prefixes

This commit is contained in:
Caleb Brinkman committed 2019-09-11 09:20:39 -05:00
1 parent dc56309dad
commit 2baefe08ce
1 file changed
+3
+3
View File
@@ -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 "";