You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/12/23 07:16:19 UTC

groovy git commit: Trivial refactoring: generify ArrayList to avoid warnings

Repository: groovy
Updated Branches:
  refs/heads/master 6e7e32907 -> 1fe0acf07


Trivial refactoring: generify ArrayList to avoid warnings


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

Branch: refs/heads/master
Commit: 1fe0acf07004e7c0932af1853f6a06903eabdd62
Parents: 6e7e329
Author: sunlan <su...@apache.org>
Authored: Sat Dec 23 15:16:03 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Sat Dec 23 15:16:03 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/1fe0acf0/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) {