diff options
author | Emil Lundberg <emil@emlun.se> | 2019-01-13 02:42:00 +0100 |
---|---|---|
committer | Emil Lundberg <emil@emlun.se> | 2019-01-13 02:42:00 +0100 |
commit | 4ea8c439e1cc61bca6863ec8cf24e081b939689e (patch) | |
tree | 91ca0790abc6d62b307cda749ffc1d9b80feff51 /src/core/lombok | |
parent | 3285d83e1636c0a21c7aada3bb278419ec2bd83a (diff) | |
download | lombok-4ea8c439e1cc61bca6863ec8cf24e081b939689e.tar.gz lombok-4ea8c439e1cc61bca6863ec8cf24e081b939689e.tar.bz2 lombok-4ea8c439e1cc61bca6863ec8cf24e081b939689e.zip |
Simplify List generateSingularMethodStatements to single expression
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java index 0d9d5d0f..bbe6eb63 100644 --- a/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java +++ b/src/core/lombok/javac/handlers/singulars/JavacJavaUtilListSetSingularizer.java @@ -84,9 +84,8 @@ abstract class JavacJavaUtilListSetSingularizer extends JavacJavaUtilSingularize @Override protected ListBuffer<JCStatement> generateSingularMethodStatements(JavacTreeMaker maker, SingularData data, JavacNode builderType, JCTree source) { - ListBuffer<JCStatement> statements = new ListBuffer<JCStatement>(); - statements.append(generateSingularMethodAddStatement(maker, builderType, data.getSingularName(), data.getPluralName().toString())); - return statements; + return new ListBuffer<JCStatement>() + .append(generateSingularMethodAddStatement(maker, builderType, data.getSingularName(), data.getPluralName().toString())); } @Override |