geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcco...@apache.org
Subject svn commit: r732599 - /geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java
Date Thu, 08 Jan 2009 03:36:25 GMT
Author: mcconne
Date: Wed Jan  7 19:36:25 2009
New Revision: 732599

URL: http://svn.apache.org/viewvc?rev=732599&view=rev
Log:
GERONIMO-4497 Use less-confusing variable name

Modified:
    geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java

Modified: geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java?rev=732599&r1=732598&r2=732599&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java
Wed Jan  7 19:36:25 2009
@@ -60,7 +60,7 @@
     private final ClassLoader[] parents;
     private final ClassLoadingRules classLoadingRules;
     private boolean destroyed = false;
-    private Set<String> knownResources = new HashSet<String>();
+    private Set<String> resourcesNotFound = new HashSet<String>();
 
     // I used this pattern as its temporary and with the static final we get compile time

     // optimizations.
@@ -515,7 +515,7 @@
     }
 
     public URL getResource(String name) {
-        if (isDestroyed() || knownResources.contains(name)) {
+        if (isDestroyed() || resourcesNotFound.contains(name)) {
             return null;
         }
 
@@ -558,8 +558,8 @@
         // 
         // Resource not found -- no need to search for it again
         // 
-        if (!knownResources.contains(name)) {
-            knownResources.add(name);
+        if (!resourcesNotFound.contains(name)) {
+            resourcesNotFound.add(name);
         }
 
         return null;



Mime
View raw message