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 b53afad64 Inline single use local variable b53afad64 is described below commit b53afad64ba9e1350e72f29e400a1e902e486ac8 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Mar 13 15:17:23 2025 -0400 Inline single use local variable --- src/main/java/org/apache/commons/lang3/ArrayUtils.java | 3 +-- 1 file changed, 1 insertion(+), 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 4a16405da..bb892c699 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -8985,8 +8985,7 @@ public static Boolean[] toObject(final boolean[] array) { if (array.length == 0) { return EMPTY_BOOLEAN_OBJECT_ARRAY; } - final Boolean[] result = new Boolean[array.length]; - return setAll(result, i -> array[i] ? Boolean.TRUE : Boolean.FALSE); + return setAll(new Boolean[array.length], i -> array[i] ? Boolean.TRUE : Boolean.FALSE); } /**