jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1203203 - /jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Date Thu, 17 Nov 2011 14:30:17 GMT
Author: reschke
Date: Thu Nov 17 14:30:17 2011
New Revision: 1203203

URL: http://svn.apache.org/viewvc?rev=1203203&view=rev
Log:
fix indentation

Modified:
    jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java

Modified: jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java?rev=1203203&r1=1203202&r2=1203203&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Thu Nov 17 14:30:17 2011
@@ -2538,20 +2538,20 @@ public class RepositoryServiceImpl imple
      */
     private Iterator<QNodeTypeDefinition> retrieveQNodeTypeDefinitions(SessionInfo
sessionInfo, Document reportDoc) throws RepositoryException {
         ElementIterator it = DomUtil.getChildren(reportDoc.getDocumentElement(), NodeTypeConstants.NODETYPE_ELEMENT,
null);
-            List<QNodeTypeDefinition> ntDefs = new ArrayList<QNodeTypeDefinition>();
-            NamePathResolver resolver = getNamePathResolver(sessionInfo);
-            while (it.hasNext()) {
-                ntDefs.add(DefinitionUtil.createQNodeTypeDefinition(it.nextElement(), resolver,
getQValueFactory()));
-            }
-            // refresh node type definitions map
-            synchronized (nodeTypeDefinitions) {
-                nodeTypeDefinitions.clear();
-                for (Object ntDef : ntDefs) {
-                    QNodeTypeDefinition def = (QNodeTypeDefinition) ntDef;
-                    nodeTypeDefinitions.put(def.getName(), def);
-                }
+        List<QNodeTypeDefinition> ntDefs = new ArrayList<QNodeTypeDefinition>();
+        NamePathResolver resolver = getNamePathResolver(sessionInfo);
+        while (it.hasNext()) {
+            ntDefs.add(DefinitionUtil.createQNodeTypeDefinition(it.nextElement(), resolver,
getQValueFactory()));
+        }
+        // refresh node type definitions map
+        synchronized (nodeTypeDefinitions) {
+            nodeTypeDefinitions.clear();
+            for (Object ntDef : ntDefs) {
+                QNodeTypeDefinition def = (QNodeTypeDefinition) ntDef;
+                nodeTypeDefinitions.put(def.getName(), def);
             }
-            return ntDefs.iterator();
+        }
+        return ntDefs.iterator();
     }
 
     private DavProperty<List<XmlSerializable>> createRegisterNodeTypesProperty(SessionInfo
sessionInfo, QNodeTypeDefinition[] nodeTypeDefinitions, final boolean allowUpdate) throws
IOException {



Mime
View raw message