You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/10/28 17:34:22 UTC
[commons-lang] branch master updated: Add @SuppressWarnings.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new e55a870 Add @SuppressWarnings.
new 7ffa926 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git
e55a870 is described below
commit e55a870d36a7901e556245a8673d6529948c3e3c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Oct 28 13:28:37 2019 -0400
Add @SuppressWarnings.
---
src/main/java/org/apache/commons/lang3/ArrayUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
index 0c8d75b..45bfc4f 100644
--- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
@@ -320,7 +320,7 @@ public class ArrayUtils {
* @return the array, not null unless a null array is passed in
* @since 3.0
*/
- public static <T> T[] toArray(final T... items) {
+ public static <T> T[] toArray(@SuppressWarnings("unchecked") final T... items) {
return items;
}
@@ -5077,7 +5077,7 @@ public class ArrayUtils {
* @since 2.1
* @throws IllegalArgumentException if the array types are incompatible
*/
- public static <T> T[] addAll(final T[] array1, final T... array2) {
+ public static <T> T[] addAll(final T[] array1, @SuppressWarnings("unchecked") final T... array2) {
if (array1 == null) {
return clone(array2);
} else if (array2 == null) {