diff --git a/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java b/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java index 9b209f282..a5fd25383 100644 --- a/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java +++ b/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java @@ -300,7 +300,7 @@ public abstract class BackgroundInitializer { private class InitializationTask implements Callable { /** 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 { * @param exec the {@code ExecutorService} */ public InitializationTask(ExecutorService exec) { - executor = exec; + execFinally = exec; } /** @@ -322,8 +322,8 @@ public abstract class BackgroundInitializer { try { return initialize(); } finally { - if (executor != null) { - executor.shutdown(); + if (execFinally != null) { + execFinally.shutdown(); } } }