aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleSuperBuilder.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-10-18 15:44:45 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-10-18 20:24:37 +0200
commitdbc67c5c2d0388692f9c9dec02b294da14fd5b56 (patch)
treeb3e95fc757976fb3c9188c6c046191eaaea7496e /src/core/lombok/javac/handlers/HandleSuperBuilder.java
parent1ae87bad9583620ca79c1f3ede31703cbb95cbc5 (diff)
downloadlombok-dbc67c5c2d0388692f9c9dec02b294da14fd5b56.tar.gz
lombok-dbc67c5c2d0388692f9c9dec02b294da14fd5b56.tar.bz2
lombok-dbc67c5c2d0388692f9c9dec02b294da14fd5b56.zip
[#2693] Review and updates for javabeans-style capitalization lombok.config
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleSuperBuilder.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleSuperBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleSuperBuilder.java b/src/core/lombok/javac/handlers/HandleSuperBuilder.java
index 50193f99..b5bc73fb 100644
--- a/src/core/lombok/javac/handlers/HandleSuperBuilder.java
+++ b/src/core/lombok/javac/handlers/HandleSuperBuilder.java
@@ -777,7 +777,7 @@ public class HandleSuperBuilder extends JavacAnnotationHandler<SuperBuilder> {
arg = maker.Conditional(eqNull, emptyCollection, tgt[1]);
}
- String setterName = HandlerUtil.buildAccessorName(setterPrefix, bfd.name.toString());
+ String setterName = HandlerUtil.buildAccessorName(job.sourceNode, setterPrefix, bfd.name.toString());
JCMethodInvocation apply = maker.Apply(List.<JCExpression>nil(), maker.Select(maker.Ident(job.toName(BUILDER_VARIABLE_NAME)), job.toName(setterName)), List.of(arg));
JCExpressionStatement exec = maker.Exec(apply);
return exec;
@@ -949,7 +949,7 @@ public class HandleSuperBuilder extends JavacAnnotationHandler<SuperBuilder> {
}
private void generateSimpleSetterMethodForBuilder(SuperBuilderJob job, boolean deprecate, JavacNode fieldNode, Name paramName, Name nameOfSetFlag, JCExpression returnType, JCStatement returnStatement, List<JCAnnotation> annosOnParam, JavacNode originalFieldNode, String setterPrefix) {
- String setterName = HandlerUtil.buildAccessorName(setterPrefix, paramName.toString());
+ String setterName = HandlerUtil.buildAccessorName(job.sourceNode, setterPrefix, paramName.toString());
Name setterName_ = job.builderType.toName(setterName);
for (JavacNode child : job.builderType.down()) {