Skip to content

Commit

Permalink
ISPN-1817 Polish after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Feb 8, 2012
1 parent 88c7323 commit 8cb51c2
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -31,14 +31,15 @@
import java.util.concurrent.TimeoutException;

/**
* A delegating executor that lazily constructs and initalizes the underlying executor, since unused JDK executors
* A delegating executor that lazily constructs and initializes the underlying executor, since unused JDK executors
* are expensive.
*
* @author Manik Surtani
* @since 5.1
*/
public class LazyInitializingExecutorService implements ExecutorService {
private ExecutorService delegate;
public final class LazyInitializingExecutorService implements ExecutorService {

private volatile ExecutorService delegate;
private final ExecutorFactory factory;
private final Properties executorProperties;

Expand Down Expand Up @@ -86,7 +87,6 @@ public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedE
return true;
else
return delegate.awaitTermination(timeout, unit);

}

@Override
Expand Down

0 comments on commit 8cb51c2

Please sign in to comment.