You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/11/21 20:05:38 UTC
svn commit: r882970 -
/commons/proper/lang/trunk/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java
Author: sebb
Date: Sat Nov 21 19:05:38 2009
New Revision: 882970
URL: http://svn.apache.org/viewvc?rev=882970&view=rev
Log:
Rename private variable to avoid shadowing
Modified:
commons/proper/lang/trunk/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java
Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java?rev=882970&r1=882969&r2=882970&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java Sat Nov 21 19:05:38 2009
@@ -300,7 +300,7 @@
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 @@
* @param exec the {@code ExecutorService}
*/
public InitializationTask(ExecutorService exec) {
- executor = exec;
+ execFinally = exec;
}
/**
@@ -322,8 +322,8 @@
try {
return initialize();
} finally {
- if (executor != null) {
- executor.shutdown();
+ if (execFinally != null) {
+ execFinally.shutdown();
}
}
}