aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmil Lundberg <emil@emlun.se>2019-01-13 01:34:24 +0100
committerEmil Lundberg <emil@emlun.se>2019-01-13 02:38:15 +0100
commit92fc11fd0efdd841f488fda8c937577349dc713c (patch)
treeeb03facc446fa23e73b5250a799d3eaca4aef504 /src
parent258a9bf2886e841f2921208d44bd380d900ccc37 (diff)
downloadlombok-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.java3
-rw-r--r--src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java3
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) {