diff options
author | Emil Lundberg <emil@emlun.se> | 2019-01-13 01:34:24 +0100 |
---|---|---|
committer | Emil Lundberg <emil@emlun.se> | 2019-01-13 02:38:15 +0100 |
commit | 92fc11fd0efdd841f488fda8c937577349dc713c (patch) | |
tree | eb03facc446fa23e73b5250a799d3eaca4aef504 /src | |
parent | 258a9bf2886e841f2921208d44bd380d900ccc37 (diff) | |
download | lombok-92fc11fd0efdd841f488fda8c937577349dc713c.tar.gz lombok-92fc11fd0efdd841f488fda8c937577349dc713c.tar.bz2 lombok-92fc11fd0efdd841f488fda8c937577349dc713c.zip |
Inline Guava singularizer instances into getGuavaInstead()
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java | 3 | ||||
-rw-r--r-- | src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java index 26054203..3aeab37a 100644 --- a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java +++ b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java @@ -44,10 +44,9 @@ import com.sun.tools.javac.util.ListBuffer; import com.sun.tools.javac.util.Name; abstract class JavacJavaUtilListSetSingularizer extends JavacJavaUtilSingularizer { - private final JavacSingularizer guavaListSetSingularizer = new JavacGuavaSetListSingularizer(); @Override protected JavacSingularizer getGuavaInstead(JavacNode node) { - return guavaListSetSingularizer; + return new JavacGuavaSetListSingularizer(); } @Override public java.util.List<Name> listFieldsToBeGenerated(SingularData data, JavacNode builderType) { diff --git a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java index 1d4d8eee..76068570 100644 --- a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java +++ b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java @@ -49,14 +49,13 @@ import com.sun.tools.javac.util.Name; @ProviderFor(JavacSingularizer.class) public class JavacJavaUtilMapSingularizer extends JavacJavaUtilSingularizer { - private final JavacSingularizer guavaMapSingularizer = new JavacGuavaMapSingularizer(); @Override public LombokImmutableList<String> getSupportedTypes() { return LombokImmutableList.of("java.util.Map", "java.util.SortedMap", "java.util.NavigableMap"); } @Override protected JavacSingularizer getGuavaInstead(JavacNode node) { - return guavaMapSingularizer; + return new JavacGuavaMapSingularizer(); } @Override public java.util.List<Name> listFieldsToBeGenerated(SingularData data, JavacNode builderType) { |