jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r292711 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java
Date Fri, 30 Sep 2005 11:58:38 GMT
Author: mreutegg
Date: Fri Sep 30 04:58:36 2005
New Revision: 292711

URL: http://svn.apache.org/viewcvs?rev=292711&view=rev
Log:
Performance improvement
- also do a trivial check for mixin type names

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java?rev=292711&r1=292710&r2=292711&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java Fri Sep 30
04:58:36 2005
@@ -1174,7 +1174,12 @@
         // check state of this instance
         sanityCheck();
 
+        // first do trivial checks without using type hierarchy
         if (ntName.equals(primaryTypeName)) {
+            return true;
+        }
+
+        if (((NodeState) state).getMixinTypeNames().contains(ntName)) {
             return true;
         }
 



Mime
View raw message