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:
parent
765963f423
commit
030babab20
|
@ -300,7 +300,7 @@ public abstract class BackgroundInitializer<T> {
|
|||
|
||||
private class InitializationTask implements Callable<T> {
|
||||
/** 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
|
||||
|
@ -309,7 +309,7 @@ public abstract class BackgroundInitializer<T> {
|
|||
* @param exec the {@code ExecutorService}
|
||||
*/
|
||||
public InitializationTask(ExecutorService exec) {
|
||||
executor = exec;
|
||||
execFinally = exec;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -322,8 +322,8 @@ public abstract class BackgroundInitializer<T> {
|
|||
try {
|
||||
return initialize();
|
||||
} finally {
|
||||
if (executor != null) {
|
||||
executor.shutdown();
|
||||
if (execFinally != null) {
|
||||
execFinally.shutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue