directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r951380 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
Date Fri, 04 Jun 2010 11:36:07 GMT
Author: felixk
Date: Fri Jun  4 11:36:07 2010
New Revision: 951380

URL: http://svn.apache.org/viewvc?rev=951380&view=rev
Log:
registries implements SchemaLoaderListener, no need to test or cast

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java?rev=951380&r1=951379&r2=951380&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
Fri Jun  4 11:36:07 2010
@@ -68,9 +68,9 @@ public abstract class AbstractSchemaLoad
             listener.schemaLoaded( schema );
         }
 
-        if ( registries instanceof SchemaLoaderListener && registries != listener
)
+        if ( registries != listener )
         {
-            SchemaLoaderListener listener = ( SchemaLoaderListener ) registries;
+            SchemaLoaderListener listener = registries;
             listener.schemaLoaded( schema );
         }
     }



Mime
View raw message