commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [2/2] [lang] LANG-1295: ArrayUtils.toArray(T... items) has unsafe use of varargs
Date Fri, 20 Jan 2017 16:49:20 GMT
LANG-1295: ArrayUtils.toArray(T... items) 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/928e74f7
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/928e74f7
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/928e74f7

Branch: refs/heads/master
Commit: 928e74f73f62f241c986f6ff609575e1d833413d
Parents: 7e60537
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Fri Jan 20 17:49:11 2017 +0100
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Fri Jan 20 17:49:11 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/928e74f7/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 3331b5b..624731e 100644
--- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
@@ -301,7 +301,6 @@ public class ArrayUtils {
      * @return the array, not null unless a null array is passed in
      * @since  3.0
      */
-    @SafeVarargs
     public static <T> T[] toArray(final T... items) {
         return items;
     }


Mime
View raw message