Rename private variable to avoid shadowing

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882970 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-11-21 19:05:38 +00:00
parent 765963f423
commit 030babab20
1 changed files with 4 additions and 4 deletions

View File

@ -300,7 +300,7 @@ public abstract class BackgroundInitializer<T> {
private class InitializationTask implements Callable<T> { private class InitializationTask implements Callable<T> {
/** Stores the executor service to be destroyed at the end. */ /** Stores the executor service to be destroyed at the end. */
private final ExecutorService executor; private final ExecutorService execFinally;
/** /**
* Creates a new instance of {@code InitializationTask} and initializes * Creates a new instance of {@code InitializationTask} and initializes
@ -309,7 +309,7 @@ public abstract class BackgroundInitializer<T> {
* @param exec the {@code ExecutorService} * @param exec the {@code ExecutorService}
*/ */
public InitializationTask(ExecutorService exec) { public InitializationTask(ExecutorService exec) {
executor = exec; execFinally = exec;
} }
/** /**
@ -322,8 +322,8 @@ public abstract class BackgroundInitializer<T> {
try { try {
return initialize(); return initialize();
} finally { } finally {
if (executor != null) { if (execFinally != null) {
executor.shutdown(); execFinally.shutdown();
} }
} }
} }