aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/singulars
diff options
context:
space:
mode:
authorEmil Lundberg <emil@emlun.se>2019-01-10 01:51:47 +0100
committerEmil Lundberg <emil@emlun.se>2019-01-13 02:13:54 +0100
commitd08aa5a83d2302eaaf84c4323073dfe3edd43703 (patch)
tree4c4e651ce61ae92c8d987df21ffb33fce8664147 /src/core/lombok/javac/handlers/singulars
parent05ce5e050ea15a7feb26ba2ef6f3cda9b54c8498 (diff)
downloadlombok-d08aa5a83d2302eaaf84c4323073dfe3edd43703.tar.gz
lombok-d08aa5a83d2302eaaf84c4323073dfe3edd43703.tar.bz2
lombok-d08aa5a83d2302eaaf84c4323073dfe3edd43703.zip
Pull generateClearMethod up to JavacSingularizer
Diffstat (limited to 'src/core/lombok/javac/handlers/singulars')
-rw-r--r--src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java12
-rw-r--r--src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java12
-rw-r--r--src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java13
3 files changed, 0 insertions, 37 deletions
diff --git a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java
index 13a48869..d6796d51 100644
--- a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java
+++ b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java
@@ -77,18 +77,6 @@ abstract class JavacGuavaSingularizer extends JavacSingularizer {
}
@Override
- protected void generateClearMethod(boolean deprecate, JavacTreeMaker maker, JCExpression returnType, JCStatement returnStatement, SingularData data, JavacNode builderType, JCTree source) {
- JCModifiers mods = makeMods(maker, builderType, deprecate);
- List<JCTypeParameter> typeParams = List.nil();
- List<JCExpression> thrown = List.nil();
- List<JCVariableDecl> params = List.nil();
-
- List<JCStatement> statements = generateClearStatements(maker, returnStatement, data, builderType);
-
- finishGenerateClearMethod(maker, returnType, data, builderType, source, mods, typeParams, thrown, params, statements);
- }
-
- @Override
protected List<JCStatement> generateClearStatements(JavacTreeMaker maker, JCStatement returnStatement, SingularData data, JavacNode builderType) {
JCExpression thisDotField = maker.Select(maker.Ident(builderType.toName("this")), data.getPluralName());
diff --git a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java
index f332aad1..9ecdbbaf 100644
--- a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java
+++ b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java
@@ -88,18 +88,6 @@ abstract class JavacJavaUtilListSetSingularizer extends JavacJavaUtilSingularize
}
@Override
- protected void generateClearMethod(boolean deprecate, JavacTreeMaker maker, JCExpression returnType, JCStatement returnStatement, SingularData data, JavacNode builderType, JCTree source) {
- JCModifiers mods = makeMods(maker, builderType, deprecate);
- List<JCTypeParameter> typeParams = List.nil();
- List<JCExpression> thrown = List.nil();
- List<JCVariableDecl> params = List.nil();
-
- List<JCStatement> statements = generateClearStatements(maker, returnStatement, data, builderType);
-
- finishGenerateClearMethod(maker, returnType, data, builderType, source, mods, typeParams, thrown, params, statements);
- }
-
- @Override
protected List<JCStatement> generateClearStatements(JavacTreeMaker maker, JCStatement returnStatement, SingularData data, JavacNode builderType) {
List<JCExpression> jceBlank = List.nil();
JCExpression thisDotField = maker.Select(maker.Ident(builderType.toName("this")), data.getPluralName());
diff --git a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java
index dab09eb3..ecd01aa3 100644
--- a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java
+++ b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilMapSingularizer.java
@@ -113,19 +113,6 @@ public class JavacJavaUtilMapSingularizer extends JavacJavaUtilSingularizer {
}
@Override
- protected void generateClearMethod(boolean deprecate, JavacTreeMaker maker, JCExpression returnType, JCStatement returnStatement, SingularData data, JavacNode builderType, JCTree source) {
- JCModifiers mods = makeMods(maker, builderType, deprecate);
-
- List<JCTypeParameter> typeParams = List.nil();
- List<JCExpression> thrown = List.nil();
- List<JCVariableDecl> params = List.nil();
-
- List<JCStatement> statements = generateClearStatements(maker, returnStatement, data, builderType);
-
- finishGenerateClearMethod(maker, returnType, data, builderType, source, mods, typeParams, thrown, params, statements);
- }
-
- @Override
protected List<JCStatement> generateClearStatements(JavacTreeMaker maker, JCStatement returnStatement, SingularData data, JavacNode builderType) {
List<JCExpression> jceBlank = List.nil();