Skip to content

Commit f70a18f

Browse files
author
Gary Gregory
committed
Inline a single use variable.
1 parent bd0ff53 commit f70a18f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ static Thread start(final Thread thread, final Duration timeout) {
6565
if (timeout.isZero() || timeout.isNegative()) {
6666
return null;
6767
}
68-
final ThreadMonitor timout = new ThreadMonitor(thread, timeout);
69-
final Thread monitor = new Thread(timout, ThreadMonitor.class.getSimpleName());
68+
final Thread monitor = new Thread(new ThreadMonitor(thread, timeout), ThreadMonitor.class.getSimpleName());
7069
monitor.setDaemon(true);
7170
monitor.start();
7271
return monitor;

0 commit comments

Comments
 (0)