jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r786330 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
Date Thu, 18 Jun 2009 23:00:25 GMT
Author: tripod
Date: Thu Jun 18 23:00:25 2009
New Revision: 786330

URL: http://svn.apache.org/viewvc?rev=786330&view=rev
Log:
Return properly sorted node types (by name)

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java?rev=786330&r1=786329&r2=786330&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
Thu Jun 18 23:00:25 2009
@@ -379,6 +379,7 @@
      */
     public NodeTypeIterator getAllNodeTypes() throws RepositoryException {
         Name[] ntNames = ntReg.getRegisteredNodeTypes();
+        Arrays.sort(ntNames);
         ArrayList<NodeType> list = new ArrayList<NodeType>(ntNames.length);
         for (Name ntName : ntNames) {
             list.add(getNodeType(ntName));
@@ -391,6 +392,7 @@
      */
     public NodeTypeIterator getPrimaryNodeTypes() throws RepositoryException {
         Name[] ntNames = ntReg.getRegisteredNodeTypes();
+        Arrays.sort(ntNames);
         ArrayList<NodeType> list = new ArrayList<NodeType>(ntNames.length);
         for (Name ntName : ntNames) {
             NodeType nt = getNodeType(ntName);
@@ -406,6 +408,7 @@
      */
     public NodeTypeIterator getMixinNodeTypes() throws RepositoryException {
         Name[] ntNames = ntReg.getRegisteredNodeTypes();
+        Arrays.sort(ntNames);
         ArrayList<NodeType> list = new ArrayList<NodeType>(ntNames.length);
         for (Name ntName : ntNames) {
             NodeType nt = getNodeType(ntName);



Mime
View raw message