geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r517223 - /geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/NamedClassLoader.java
Date Mon, 12 Mar 2007 14:02:22 GMT
Author: gnodet
Date: Mon Mar 12 07:02:22 2007
New Revision: 517223

URL: http://svn.apache.org/viewvc?view=rev&rev=517223
Log:
XBEAN-83: NamedClassLoader.isDestroyed should not be synchronized

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

Modified: geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/NamedClassLoader.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/NamedClassLoader.java?view=diff&rev=517223&r1=517222&r2=517223
==============================================================================
--- geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/NamedClassLoader.java
(original)
+++ geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/NamedClassLoader.java
Mon Mar 12 07:02:22 2007
@@ -32,7 +32,7 @@
  */
 public class NamedClassLoader extends URLClassLoader implements DestroyableClassLoader {
     private final String name;
-    private boolean destroyed = false;
+    private volatile boolean destroyed = false;
 
     /**
      * Creates a named class loader with no parents.
@@ -72,7 +72,7 @@
      * Check if this classloader has been destroyed 
      * @return
      */
-    public synchronized boolean isDestroyed() {
+    public boolean isDestroyed() {
         return destroyed;
     }
 



Mime
View raw message