groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] branch master updated: Trivial refactoring: Remove redundant initializer
Date Sat, 30 May 2020 19:22:21 GMT
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 7603e0b  Trivial refactoring: Remove redundant initializer
7603e0b is described below

commit 7603e0bef4ee522ec43e30537ac65ccc54a0196e
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Sun May 31 03:21:59 2020 +0800

    Trivial refactoring: Remove redundant initializer
---
 src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java b/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
index 15fe90d..3e0eec1 100644
--- a/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
+++ b/src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java
@@ -2102,7 +2102,7 @@ public class AsmClassGenerator extends ClassGenerator {
     }
 
     public static boolean containsSpreadExpression(final Expression arguments) {
-        List<Expression> args = null;
+        List<Expression> args;
         if (arguments instanceof TupleExpression) {
             TupleExpression tupleExpression = (TupleExpression) arguments;
             args = tupleExpression.getExpressions();


Mime
View raw message