diff options
author | Jan Rieke <rieke@subshell.com> | 2021-12-30 19:04:00 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2021-12-30 23:12:24 +0100 |
commit | 3de5d0908a2bdf0af3ed3c06eaa4978d3bc778cf (patch) | |
tree | 349717a097e6aa176c81d8dda9978f1dc451a36e /src/core/lombok | |
parent | be551db9eed2ff7786f82e5d3d455f9f220b2072 (diff) | |
download | lombok-3de5d0908a2bdf0af3ed3c06eaa4978d3bc778cf.tar.gz lombok-3de5d0908a2bdf0af3ed3c06eaa4978d3bc778cf.tar.bz2 lombok-3de5d0908a2bdf0af3ed3c06eaa4978d3bc778cf.zip |
[fixes #3070] fix guava type name for SuperBuilder's toBuilder
Diffstat (limited to 'src/core/lombok')
-rwxr-xr-x | src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java | 2 | ||||
-rw-r--r-- | src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java b/src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java index 9b464a25..59fccdab 100755 --- a/src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java +++ b/src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java @@ -93,7 +93,7 @@ abstract class EclipseGuavaSingularizer extends EclipseSingularizer { } @Override protected char[][] getEmptyMakerReceiver(String targetFqn) { - return CGCC; + return makeGuavaTypeName(GuavaTypeMap.getGuavaTypeName(targetFqn), false); } @Override public List<EclipseNode> generateFields(SingularData data, EclipseNode builderType) { diff --git a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java index ce5aad5e..808b794a 100644 --- a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java +++ b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java @@ -52,7 +52,7 @@ abstract class JavacGuavaSingularizer extends JavacSingularizer { } @Override protected String getEmptyMaker(String target) { - return target + ".of"; + return "com.google.common.collect." + GuavaTypeMap.getGuavaTypeName(target) + ".of"; } protected String getBuilderMethodName(SingularData data) { |