This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch parent
in repository https://gitbox.apache.org/repos/asf/maven-shared-io.git

commit d9e09450a44b085684b138e0450adf279dbceca8
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Sun Mar 5 09:06:35 2023 -0500

    prefer Apache Commons to Maven shared utils
---
 .../java/org/apache/maven/shared/io/location/FileLocationTest.java  | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/src/test/java/org/apache/maven/shared/io/location/FileLocationTest.java 
b/src/test/java/org/apache/maven/shared/io/location/FileLocationTest.java
index 3a61da2..351c794 100644
--- a/src/test/java/org/apache/maven/shared/io/location/FileLocationTest.java
+++ b/src/test/java/org/apache/maven/shared/io/location/FileLocationTest.java
@@ -21,16 +21,14 @@ import org.apache.commons.io.FileUtils;
  * under the License.
  */
 
-import org.apache.maven.shared.utils.io.IOUtil;
-
 import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.nio.ByteBuffer;
 import java.nio.file.Files;
-
 import junit.framework.TestCase;
+import org.apache.commons.io.IOUtils;
 
 public class FileLocationTest
     extends TestCase
@@ -81,7 +79,7 @@ public class FileLocationTest
 
         try ( InputStream stream = location.getInputStream() ) {
             ByteArrayOutputStream out = new ByteArrayOutputStream();
-            IOUtil.copy( stream, out );
+            IOUtils.copy( stream, out );
     
             assertEquals( testStr, new String(out.toByteArray(), "US-ASCII" ) 
);
         }

Reply via email to