mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
Pull method getAddMethodName up to JavacSingularizer
This commit is contained in:
1 parent
2ca4120ca2
commit
ca7fdd7bec
4 files changed
+7
-3
No files matched your search
@@ -404,5 +404,7 @@ public class JavacSingularsRecipes {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract String getAddMethodName();
|
||||
}
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
@@ -197,7 +197,8 @@ public class JavacJavaUtilMapSingularizer extends JavacJavaUtilSingularizer {
|
||||
}
|
||||
}
|
||||
|
||||
private String getAddMethodName() {
|
||||
@Override
|
||||
protected String getAddMethodName() {
|
||||
return "put";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user