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 2022/06/15 11:33:11 UTC
[commons-io] branch master updated: Reuse ArrayUtils.EMPTY_BYTE_ARRAY in test
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-io.git
The following commit(s) were added to refs/heads/master by this push:
new 0fb14b1d Reuse ArrayUtils.EMPTY_BYTE_ARRAY in test
0fb14b1d is described below
commit 0fb14b1db8006e82fff3a10c2885bec469beabe9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jun 15 07:33:05 2022 -0400
Reuse ArrayUtils.EMPTY_BYTE_ARRAY in test
---
.../org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java b/src/test/java/org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java
index 4f6ebf86..0645150b 100644
--- a/src/test/java/org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java
+++ b/src/test/java/org/apache/commons/io/input/MemoryMappedFileInputStreamTest.java
@@ -18,6 +18,7 @@ package org.apache.commons.io.input;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.apache.commons.lang3.ArrayUtils.EMPTY_BYTE_ARRAY;
import java.io.IOException;
import java.io.InputStream;
@@ -39,8 +40,6 @@ import org.junit.jupiter.params.provider.ValueSource;
*/
public class MemoryMappedFileInputStreamTest {
- private static final byte[] EMPTY_BYTE_ARRAY = new byte[0];
-
@TempDir
Path tempDir;