Skip to content

Commit 18e85de

Browse files
authored
Update URLs and remove broken links (#574)
* update URLs and remove broken links * link to volatile
1 parent 54bc620 commit 18e85de

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/main/java/org/apache/commons/io/DirectoryWalker.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@
186186
*
187187
* <p>
188188
* This example provides a public {@code cancel()} method that can be called by another thread to stop the
189-
* processing. A typical example use-case would be a cancel button on a GUI. Calling this method sets a
190-
* <a href="https://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#36930"> volatile</a> flag to ensure
191-
* it will work properly in a multi-threaded environment. The flag is returned by the {@code handleIsCancelled()}
192-
* method, which will cause the walk to stop immediately. The {@code handleCancelled()} method will be the next,
193-
* and last, callback method received once cancellation has occurred.
189+
* processing. A typical example use-case is a cancel button on a GUI. Calling this method sets a
190+
* <a href='https://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#d5e12277'>(@code volatile}</a>
191+
* flag to ensure it works properly in a multi-threaded environment.
192+
* The flag is returned by the {@code handleIsCancelled()} method, which causes the walk to stop
193+
* immediately. The {@code handleCancelled()} method will be the next, and last, callback method received once cancellation has occurred.
194194
* </p>
195195
*
196196
* <pre>

src/main/java/org/apache/commons/io/FileSystemUtils.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,10 @@ List<String> performCommand(final String[] cmdAttribs, final int max, final Dura
473473
//
474474
// This method does what it can to avoid the 'Too many open files' error
475475
// based on trial and error and these links:
476-
// https://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4784692
477-
// https://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4801027
478-
// https://forum.java.sun.com/thread.jspa?threadID=533029&messageID=2572018
479-
// however, it's still not perfect as the JDK support is so poor
480-
// (see commons-exec or Ant for a better multithreaded multi-OS solution)
476+
// https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4784692
477+
// https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4801027
478+
// However, it's still not perfect as the JDK support is so poor.
479+
// (See commons-exec or Ant for a better multithreaded multi-OS solution.)
481480
//
482481
final Process proc = openProcess(cmdAttribs);
483482
final Thread monitor = ThreadMonitor.start(timeout);

src/main/java/org/apache/commons/io/IOUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ public static void copy(final InputStream input, final Writer writer, final Char
11641164
* </p>
11651165
* <p>
11661166
* Character encoding names can be found at
1167-
* <a href="http://www.iana.org/assignments/character-sets">IANA</a>.
1167+
* <a href="https://www.iana.org/assignments/character-sets">IANA</a>.
11681168
* </p>
11691169
* <p>
11701170
* This method uses {@link InputStreamReader}.

0 commit comments

Comments
 (0)