aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmil Lundberg <emil@emlun.se>2019-01-10 04:43:09 +0100
committerEmil Lundberg <emil@emlun.se>2019-01-13 02:26:56 +0100
commitca7fdd7becb9340441d870e952ab1545973ae12a (patch)
treef730c84d0cd473af1b4ca0b3dd476bdf4f47102f /src
parent2ca4120ca2339d5ddf74cb74c0d3485e3779d3ca (diff)
downloadlombok-ca7fdd7becb9340441d870e952ab1545973ae12a.tar.gz
lombok-ca7fdd7becb9340441d870e952ab1545973ae12a.tar.bz2
lombok-ca7fdd7becb9340441d870e952ab1545973ae12a.zip
Pull method getAddMethodName up to JavacSingularizer
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/javac/handlers/JavacSingularsRecipes.java2
-rw-r--r--src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java2
-rw-r--r--src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java3
-rw-r--r--src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java3
4 files changed, 7 insertions, 3 deletions
diff --git a/src/core/lombok/javac/handlers/JavacSingularsRecipes.java b/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
index 1546e523..fbfd0b7c 100644
--- a/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
+++ b/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
@@ -404,5 +404,7 @@ public class JavacSingularsRecipes {
}
}
}
+
+ protected abstract String getAddMethodName();
}
}
diff --git a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java
index 64345742..e2571507 100644
--- a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java
+++ b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java
@@ -193,7 +193,7 @@ abstract class JavacGuavaSingularizer extends JavacSingularizer {
}
protected abstract LombokImmutableList<String> getArgumentSuffixes();
- protected abstract String getAddMethodName();
+
protected abstract String getAddAllTypeName();
protected int getTypeArgumentsCount() {
diff --git a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java
index e3a568f8..f2bd94ea 100644
--- a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java
+++ b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java
@@ -134,7 +134,8 @@ abstract class JavacJavaUtilListSetSingularizer extends JavacJavaUtilSingularize
finishAndInjectMethod(maker, returnType, builderType, source, mods, body, name, List.of(param));
}
- private String getAddMethodName() {
+ @Override
+ protected String getAddMethodName() {
return "add";
}
}
diff --git a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java
index ddbb546c..09077660 100644
--- a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java
+++ b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java
@@ -197,7 +197,8 @@ public class JavacJavaUtilMapSingularizer extends JavacJavaUtilSingularizer {
}
}
- private String getAddMethodName() {
+ @Override
+ protected String getAddMethodName() {
return "put";
}
}