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

commit 9577adbc5fd701c84087bb3b627bddbe10bea420
Author: Gary Gregory <[email protected]>
AuthorDate: Sun May 7 14:55:48 2023 -0400

    Better internal method name
---
 .../commons/io/input/ReadAheadInputStream.java       | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java 
b/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java
index 72e06335..7d03a5a8 100644
--- a/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java
@@ -100,27 +100,27 @@ public class ReadAheadInputStream extends 
FilterInputStream {
         return new Builder();
     }
 
-    /**
-     * Creates a new daemon executor service.
-     *
-     * @return a new daemon executor service.
-     */
-    private static ExecutorService newExecutorService() {
-        return 
Executors.newSingleThreadExecutor(ReadAheadInputStream::newThread);
-    }
-
     /**
      * Creates a new daemon thread.
      *
      * @param r the thread's runnable.
      * @return a new daemon thread.
      */
-    private static Thread newThread(final Runnable r) {
+    private static Thread newDaemonThread(final Runnable r) {
         final Thread thread = new Thread(r, "commons-io-read-ahead");
         thread.setDaemon(true);
         return thread;
     }
 
+    /**
+     * Creates a new daemon executor service.
+     *
+     * @return a new daemon executor service.
+     */
+    private static ExecutorService newExecutorService() {
+        return 
Executors.newSingleThreadExecutor(ReadAheadInputStream::newDaemonThread);
+    }
+
     private final ReentrantLock stateChangeLock = new ReentrantLock();
 
     // @GuardedBy("stateChangeLock")

Reply via email to