From 928e74f73f62f241c986f6ff609575e1d833413d Mon Sep 17 00:00:00 2001 From: pascalschumacher Date: Fri, 20 Jan 2017 17:49:11 +0100 Subject: [PATCH] LANG-1295: ArrayUtils.toArray(T... items) has unsafe use of varargs remove SafeVarargs annotation --- src/main/java/org/apache/commons/lang3/ArrayUtils.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index 3331b5b68..624731ed3 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[] toArray(final T... items) { return items; }