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 18e85dee3 Update URLs and remove broken links (#574)
18e85dee3 is described below

commit 18e85dee3afb4f5c762da562830db2960dad7773
Author: Elliotte Rusty Harold <elh...@users.noreply.github.com>
AuthorDate: Wed Jan 31 15:32:17 2024 +0000

    Update URLs and remove broken links (#574)
    
    * update URLs and remove broken links
    
    * link to volatile
---
 src/main/java/org/apache/commons/io/DirectoryWalker.java | 10 +++++-----
 src/main/java/org/apache/commons/io/FileSystemUtils.java |  9 ++++-----
 src/main/java/org/apache/commons/io/IOUtils.java         |  2 +-
 3 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/DirectoryWalker.java 
b/src/main/java/org/apache/commons/io/DirectoryWalker.java
index 55dfe9014..6995ccfd2 100644
--- a/src/main/java/org/apache/commons/io/DirectoryWalker.java
+++ b/src/main/java/org/apache/commons/io/DirectoryWalker.java
@@ -186,11 +186,11 @@ import org.apache.commons.io.filefilter.TrueFileFilter;
  *
  * <p>
  * This example provides a public {@code cancel()} method that can be called 
by another thread to stop the
- * processing. A typical example use-case would be a cancel button on a GUI. 
Calling this method sets a
- * <a 
href="https://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#36930";>
 volatile</a> flag to ensure
- * it will work properly in a multi-threaded environment. The flag is returned 
by the {@code handleIsCancelled()}
- * method, which will cause the walk to stop immediately. The {@code 
handleCancelled()} method will be the next,
- * and last, callback method received once cancellation has occurred.
+ * processing. A typical example use-case is a cancel button on a GUI. Calling 
this method sets a
+ * <a 
href='https://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#d5e12277'>(@code
 volatile}</a>
+ * flag to ensure it works properly in a multi-threaded environment.
+ * The flag is returned by the {@code handleIsCancelled()} method, which 
causes the walk to stop
+ * immediately. The {@code handleCancelled()} method will be the next, and 
last, callback method received once cancellation has occurred.
  * </p>
  *
  * <pre>
diff --git a/src/main/java/org/apache/commons/io/FileSystemUtils.java 
b/src/main/java/org/apache/commons/io/FileSystemUtils.java
index 91c200812..1284285d2 100644
--- a/src/main/java/org/apache/commons/io/FileSystemUtils.java
+++ b/src/main/java/org/apache/commons/io/FileSystemUtils.java
@@ -473,11 +473,10 @@ public class FileSystemUtils {
         //
         // This method does what it can to avoid the 'Too many open files' 
error
         // based on trial and error and these links:
-        // https://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4784692
-        // https://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4801027
-        // 
https://forum.java.sun.com/thread.jspa?threadID=533029&messageID=2572018
-        // however, it's still not perfect as the JDK support is so poor
-        // (see commons-exec or Ant for a better multithreaded multi-OS 
solution)
+        // https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4784692
+        // https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4801027
+        // However, it's still not perfect as the JDK support is so poor.
+        // (See commons-exec or Ant for a better multithreaded multi-OS 
solution.)
         //
         final Process proc = openProcess(cmdAttribs);
         final Thread monitor = ThreadMonitor.start(timeout);
diff --git a/src/main/java/org/apache/commons/io/IOUtils.java 
b/src/main/java/org/apache/commons/io/IOUtils.java
index f24272577..e12a1b9c0 100644
--- a/src/main/java/org/apache/commons/io/IOUtils.java
+++ b/src/main/java/org/apache/commons/io/IOUtils.java
@@ -1164,7 +1164,7 @@ public class IOUtils {
      * </p>
      * <p>
      * Character encoding names can be found at
-     * <a href="http://www.iana.org/assignments/character-sets";>IANA</a>.
+     * <a href="https://www.iana.org/assignments/character-sets";>IANA</a>.
      * </p>
      * <p>
      * This method uses {@link InputStreamReader}.

Reply via email to