mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-06 04:16:49 +00:00
[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:
@@ -0,0 +1,5 @@
|
||||
@lombok.Builder
|
||||
public class BuilderWithBadNames {
|
||||
String build;
|
||||
String toString;
|
||||
}
|
||||
Reference in New Issue
Block a user