aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleSuperBuilder.java
diff options
context:
space:
mode:
authorJan Rieke <rieke@subshell.com>2021-03-12 10:34:48 +0100
committerJan Rieke <rieke@subshell.com>2021-03-12 10:34:48 +0100
commit4ba962aae0de64c4063cb5313ed15fe25928e9ca (patch)
tree85b3e15c430a0ae7a8f3719044b003a748dc5a7a /src/core/lombok/javac/handlers/HandleSuperBuilder.java
parent714be613cb29bb682d99d75abb97efc944042c50 (diff)
downloadlombok-4ba962aae0de64c4063cb5313ed15fe25928e9ca.tar.gz
lombok-4ba962aae0de64c4063cb5313ed15fe25928e9ca.tar.bz2
lombok-4ba962aae0de64c4063cb5313ed15fe25928e9ca.zip
rename method; use null instead of empty string
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleSuperBuilder.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleSuperBuilder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lombok/javac/handlers/HandleSuperBuilder.java b/src/core/lombok/javac/handlers/HandleSuperBuilder.java
index 567e7816..b66df8cd 100644
--- a/src/core/lombok/javac/handlers/HandleSuperBuilder.java
+++ b/src/core/lombok/javac/handlers/HandleSuperBuilder.java
@@ -113,7 +113,7 @@ public class HandleSuperBuilder extends JavacAnnotationHandler<SuperBuilder> {
if (builderMethodName == null) builderMethodName = "builder";
if (buildMethodName == null) buildMethodName = "build";
- builderClassName = fixBuilderClassName(node, "");
+ builderClassName = getBuilderClassNameTemplate(node, null);
}
void setBuilderToImpl() {
@@ -257,11 +257,11 @@ public class HandleSuperBuilder extends JavacAnnotationHandler<SuperBuilder> {
}
if (extendsClause instanceof JCFieldAccess) {
Name superclassName = ((JCFieldAccess) extendsClause).getIdentifier();
- String builderClassNameTemplate = BuilderJob.fixBuilderClassName(annotationNode, "");
+ String builderClassNameTemplate = BuilderJob.getBuilderClassNameTemplate(annotationNode, null);
String superclassBuilderClassName = job.replaceBuilderClassName(superclassName.toString(), builderClassNameTemplate);
superclassBuilderClass = parent.getTreeMaker().Select((JCFieldAccess) extendsClause, parent.toName(superclassBuilderClassName));
} else if (extendsClause != null) {
- String builderClassNameTemplate = BuilderJob.fixBuilderClassName(annotationNode, "");
+ String builderClassNameTemplate = BuilderJob.getBuilderClassNameTemplate(annotationNode, null);
String superclassBuilderClassName = job.replaceBuilderClassName(extendsClause.toString(), builderClassNameTemplate);
superclassBuilderClass = chainDots(parent, extendsClause.toString(), superclassBuilderClassName);
}