File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/io/input Expand file tree Collapse file tree Original file line number Diff line number Diff 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")
You can’t perform that action at this time.
0 commit comments