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:16:19 GMT
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 <sunlan@apache.org>
Authored: Sat Dec 23 15:16:03 2017 +0800
Committer: sunlan <sunlan@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) {


Mime
View raw message