commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r882970 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/concurrent/BackgroundInitializer.java
Date Sat, 21 Nov 2009 19:05:38 GMT
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();
                 }
             }
         }



Mime
View raw message