diff options
author | Emil Lundberg <emil@emlun.se> | 2019-01-10 03:28:09 +0100 |
---|---|---|
committer | Emil Lundberg <emil@emlun.se> | 2019-01-13 02:20:02 +0100 |
commit | b09f4ca38dd1a7f819b9294382db0c7a43ebe809 (patch) | |
tree | 4d8cc537ff2e4310810e7e1512351807f7f8ecd7 | |
parent | 4599a65b7df036eabf5d6784466a0ab848a63d16 (diff) | |
download | lombok-b09f4ca38dd1a7f819b9294382db0c7a43ebe809.tar.gz lombok-b09f4ca38dd1a7f819b9294382db0c7a43ebe809.tar.bz2 lombok-b09f4ca38dd1a7f819b9294382db0c7a43ebe809.zip |
Inline single-use variable
-rw-r--r-- | src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java index cd650f9a..50426a87 100644 --- a/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java +++ b/src/core/lombok/javac/handlers/singulars/JavacGuavaSingularizer.java @@ -108,8 +108,7 @@ abstract class JavacGuavaSingularizer extends JavacSingularizer { if (!fluent) methodName = builderType.toName(HandlerUtil.buildAccessorName(getAddMethodName(), methodName.toString())); ListBuffer<JCVariableDecl> params = new ListBuffer<JCVariableDecl>(); for (int i = 0; i < suffixes.size(); i++) { - JCVariableDecl p = generateSingularMethodParameter(i, maker, data, builderType, source, names[i], paramFlags); - params.append(p); + params.append(generateSingularMethodParameter(i, maker, data, builderType, source, names[i], paramFlags)); } finishAndInjectMethod(maker, returnType, builderType, source, mods, body, methodName, params.toList()); |