jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1336164 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/nodetype/NodeTypeImpl.java
Date Wed, 09 May 2012 12:59:22 GMT
Author: reschke
Date: Wed May  9 12:59:21 2012
New Revision: 1336164

URL: http://svn.apache.org/viewvc?rev=1336164&view=rev
Log:
OAK-66: fix typing problem with contains() (WIP)

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/nodetype/NodeTypeImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/nodetype/NodeTypeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/nodetype/NodeTypeImpl.java?rev=1336164&r1=1336163&r2=1336164&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/nodetype/NodeTypeImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/nodetype/NodeTypeImpl.java
Wed May  9 12:59:21 2012
@@ -199,9 +199,10 @@ class NodeTypeImpl implements NodeType {
             NodeTypeIterator iterator = manager.getAllNodeTypes();
             while (iterator.hasNext()) {
                 NodeType type = iterator.nextNodeType();
-                if (type.isNodeType(getName()) && !isNodeType(type.getName())) {
+                String name = type.getName();
+                if (type.isNodeType(getName()) && !isNodeType(name)) {
                     List<String> declaredSuperTypeNames = Arrays.asList(type.getDeclaredSupertypeNames());
-                    if (declaredSuperTypeNames.contains(type)) {
+                    if (declaredSuperTypeNames.contains(name)) {
                         types.add(type);
                     }
                 }



Mime
View raw message