geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1347594 - /geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java
Date Thu, 07 Jun 2012 12:56:03 GMT
Author: gnodet
Date: Thu Jun  7 12:56:03 2012
New Revision: 1347594

URL: http://svn.apache.org/viewvc?rev=1347594&view=rev
Log:
[XBEAN-203] Performance improvement by adding local cache for MultiParentClassLoader#loadClass
(cleaner formatting)

Modified:
    geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java

Modified: geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java?rev=1347594&r1=1347593&r2=1347594&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java
(original)
+++ geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java
Thu Jun  7 12:56:03 2012
@@ -165,9 +165,9 @@ public class MultiParentClassLoader exte
         // check if the class is already in the local cache
         //
         SoftReference<Class> reference = cache.get(name);
-		if (reference != null) {
+        if (reference != null) {
             result = reference.get();
-		}
+        }
         if (result == null) {
             result = doLoadClass(name, resolve);
             cache.put(name, new SoftReference<Class>(result));



Mime
View raw message