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-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new 8ff9b6194 Use short-hand ArrayFill
8ff9b6194 is described below

commit 8ff9b61940709ec555a7347468ce24f4ca78027c
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Mon May 19 08:30:23 2025 -0400

    Use short-hand ArrayFill
---
 .../test/java/org/apache/commons/vfs2/provider/tar/LargeTarTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/tar/LargeTarTest.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/tar/LargeTarTest.java
index a5fa0717c..39d3ef722 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/tar/LargeTarTest.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/tar/LargeTarTest.java
@@ -34,6 +34,7 @@ import 
org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
 import org.apache.commons.compress.compressors.CompressorStreamFactory;
 import org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream;
 import org.apache.commons.compress.utils.IOUtils;
+import org.apache.commons.lang3.ArrayFill;
 import org.apache.commons.vfs2.CacheStrategy;
 import org.apache.commons.vfs2.FileObject;
 import org.apache.commons.vfs2.cache.SoftRefFilesCache;
@@ -72,8 +73,7 @@ public class LargeTarTest {
             final PipedInputStream inTarFileStream = new 
PipedInputStream(outTarFileStream);
 
             final Thread source = new Thread(() -> {
-                final byte[] ba_1k = new byte[(int) _1K];
-                Arrays.fill(ba_1k, (byte) 'a');
+                final byte[] ba_1k = ArrayFill.fill(new byte[(int) _1K], 
(byte) 'a');
                 try {
                     final TarArchiveOutputStream outTarStream = 
(TarArchiveOutputStream) new ArchiveStreamFactory()
                             
.createArchiveOutputStream(ArchiveStreamFactory.TAR, outTarFileStream);

Reply via email to