groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Avoid "Possible heap pollution from parameterized vararg type" warning
Date Fri, 06 Jul 2018 00:07:00 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 488619017 -> ab8bdb4c7


Avoid "Possible heap pollution from parameterized vararg type" warning


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

Branch: refs/heads/master
Commit: ab8bdb4c768d5d5d40ccf41fb05491bd56b447b1
Parents: 4886190
Author: sunlan <sunlan@apache.org>
Authored: Thu Jul 5 18:36:53 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Fri Jul 6 08:06:48 2018 +0800

----------------------------------------------------------------------
 src/main/groovy/groovy/lang/Tuple.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/ab8bdb4c/src/main/groovy/groovy/lang/Tuple.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/groovy/lang/Tuple.java b/src/main/groovy/groovy/lang/Tuple.java
index eb9956f..8a1a6e7 100644
--- a/src/main/groovy/groovy/lang/Tuple.java
+++ b/src/main/groovy/groovy/lang/Tuple.java
@@ -34,6 +34,7 @@ public class Tuple<E> extends AbstractList<E> implements Serializable
{
     private static final long serialVersionUID = -6707770506387821031L;
     private final E[] contents;
 
+    @SafeVarargs
     public Tuple(E... contents) {
         if (contents == null) throw new NullPointerException();
         this.contents = contents;


Mime
View raw message