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

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

commit 0a0b0ccaad40eb10d65f77ac9eb479841886981b
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Sun Mar 5 08:20:28 2023 -0500

    prefer Apache Commons IO to maven-shared-utils
---
 pom.xml                                                    |  3 +--
 .../org/apache/maven/shared/io/location/URLLocation.java   | 14 ++++++--------
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/pom.xml b/pom.xml
index bd21d92..37f06a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -105,13 +105,12 @@
       <artifactId>sisu-inject-plexus</artifactId>
       <version>1.4.2</version>
     </dependency>
-    
     <dependency>
       <groupId>commons-io</groupId>
       <artifactId>commons-io</artifactId>
       <version>2.6</version>
-      <scope>test</scope>
     </dependency>
+    
     <dependency>
       <groupId>org.easymock</groupId>
       <artifactId>easymock</artifactId>
diff --git a/src/main/java/org/apache/maven/shared/io/location/URLLocation.java 
b/src/main/java/org/apache/maven/shared/io/location/URLLocation.java
index cca1f24..56b0495 100644
--- a/src/main/java/org/apache/maven/shared/io/location/URLLocation.java
+++ b/src/main/java/org/apache/maven/shared/io/location/URLLocation.java
@@ -23,11 +23,10 @@ import java.io.File;
 import java.io.IOException;
 import java.net.URL;
 
-import org.apache.maven.shared.utils.io.FileUtils;
+import org.apache.commons.io.FileUtils;
 
 /**
  * The URL Location.
- *
  */
 public class URLLocation
     extends FileLocation
@@ -42,11 +41,11 @@ public class URLLocation
     private final boolean tempFileDeleteOnExit;
 
     /**
-     * @param url The URL.
-     * @param specification The spec.
-     * @param tempFilePrefix the prefix.
-     * @param tempFileSuffix The suffix.
-     * @param tempFileDeleteOnExit delete on exit.
+     * @param url the URL
+     * @param specification the spec
+     * @param tempFilePrefix the prefix
+     * @param tempFileSuffix the suffix
+     * @param tempFileDeleteOnExit delete on exit
      */
     public URLLocation( URL url, String specification, String tempFilePrefix, 
String tempFileSuffix,
                         boolean tempFileDeleteOnExit )
@@ -63,7 +62,6 @@ public class URLLocation
     protected void initFile()
         throws IOException
     {
-        // TODO: Log this in the debug log-level...
         if ( unsafeGetFile() == null )
         {
             File tempFile = File.createTempFile( tempFilePrefix, 
tempFileSuffix );

Reply via email to