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"
Date Thu, 05 Jul 2018 10:37:23 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 3eaae0502 -> e3cce6819


Avoid "Possible heap pollution from parameterized vararg type"

(cherry picked from commit d14878f)


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

Branch: refs/heads/GROOVY_2_5_X
Commit: e3cce681943d73ef3d56baf73178aa121ce2d80a
Parents: 3eaae05
Author: sunlan <sunlan@apache.org>
Authored: Thu Jul 5 18:36:53 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Thu Jul 5 18:37:16 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/e3cce681/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