commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [1/2] [lang] LANG-1296: ArrayUtils.addAll() has unsafe use of varargs
Date Fri, 20 Jan 2017 16:49:19 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master d0e2bfc46 -> 928e74f73


LANG-1296: ArrayUtils.addAll() has unsafe use of varargs

remove SafeVarargs annotation


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/7e605378
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/7e605378
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/7e605378

Branch: refs/heads/master
Commit: 7e605378202fe4e6c9f4aa6a10201b4205238710
Parents: d0e2bfc
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Fri Jan 20 17:47:20 2017 +0100
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Fri Jan 20 17:47:20 2017 +0100

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/ArrayUtils.java | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/7e605378/src/main/java/org/apache/commons/lang3/ArrayUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
index 1e1217b..3331b5b 100644
--- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
@@ -5059,7 +5059,6 @@ public class ArrayUtils {
      * @since 2.1
      * @throws IllegalArgumentException if the array types are incompatible
      */
-    @SafeVarargs
     public static <T> T[] addAll(final T[] array1, final T... array2) {
         if (array1 == null) {
             return clone(array2);


Mime
View raw message