Skip to content

Commit 9577adb

Browse files
committed
Better internal method name
1 parent 0f6f414 commit 9577adb

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,27 @@ public static Builder builder() {
100100
return new Builder();
101101
}
102102

103-
/**
104-
* Creates a new daemon executor service.
105-
*
106-
* @return a new daemon executor service.
107-
*/
108-
private static ExecutorService newExecutorService() {
109-
return Executors.newSingleThreadExecutor(ReadAheadInputStream::newThread);
110-
}
111-
112103
/**
113104
* Creates a new daemon thread.
114105
*
115106
* @param r the thread's runnable.
116107
* @return a new daemon thread.
117108
*/
118-
private static Thread newThread(final Runnable r) {
109+
private static Thread newDaemonThread(final Runnable r) {
119110
final Thread thread = new Thread(r, "commons-io-read-ahead");
120111
thread.setDaemon(true);
121112
return thread;
122113
}
123114

115+
/**
116+
* Creates a new daemon executor service.
117+
*
118+
* @return a new daemon executor service.
119+
*/
120+
private static ExecutorService newExecutorService() {
121+
return Executors.newSingleThreadExecutor(ReadAheadInputStream::newDaemonThread);
122+
}
123+
124124
private final ReentrantLock stateChangeLock = new ReentrantLock();
125125

126126
// @GuardedBy("stateChangeLock")

0 commit comments

Comments
 (0)