[fixes #2011] If you have a field named build or toString, and you generate a builder, that builder wouldn’t make the build or toString methods because it thinks the builder-setter methods it just generated that so happen to have that name indicate you don’t want lombok to do that.

You really shouldn’t name any fields builder or toString, though.
This commit is contained in:
Reinier Zwitserloot
2019-01-29 01:34:22 +01:00
parent 960811364b
commit 3d0beec38d
5 changed files with 99 additions and 10 deletions
@@ -0,0 +1,5 @@
@lombok.Builder
public class BuilderWithBadNames {
String build;
String toString;
}