groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Trivial refactoring: generify ArrayList to avoid warnings
Date Sat, 23 Dec 2017 07:43:19 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 21fd7de54 -> 6da0f9ab2


Trivial refactoring: generify ArrayList to avoid warnings

(cherry picked from commit 1fe0acf)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/6da0f9ab
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/6da0f9ab
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/6da0f9ab

Branch: refs/heads/GROOVY_2_6_X
Commit: 6da0f9ab29fd81858c4c5c95a6a2f316326eba05
Parents: 21fd7de
Author: sunlan <sunlan@apache.org>
Authored: Sat Dec 23 15:16:03 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Sat Dec 23 15:43:08 2017 +0800

----------------------------------------------------------------------
 .../java/org/codehaus/groovy/classgen/asm/InvocationWriter.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/6da0f9ab/src/main/java/org/codehaus/groovy/classgen/asm/InvocationWriter.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/InvocationWriter.java b/src/main/java/org/codehaus/groovy/classgen/asm/InvocationWriter.java
index 1c14da8..10a82ed 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/InvocationWriter.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/InvocationWriter.java
@@ -698,7 +698,7 @@ public class InvocationWriter {
         if (arguments instanceof TupleExpression) {
             argumentList = ((TupleExpression) arguments).getExpressions();
         } else {
-            argumentList = new ArrayList();
+            argumentList = new ArrayList<>();
             argumentList.add(arguments);
         }
         for (Expression expression : argumentList) {


Mime
View raw message