incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject svn commit: r1528775 - /sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/Loader.java
Date Thu, 03 Oct 2013 09:56:47 GMT
Author: olli
Date: Thu Oct  3 09:56:46 2013
New Revision: 1528775

URL: http://svn.apache.org/r1528775
Log:
SLING-2917 style

Modified:
    sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/Loader.java

Modified: sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/Loader.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/Loader.java?rev=1528775&r1=1528774&r2=1528775&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/Loader.java
(original)
+++ sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/Loader.java
Thu Oct  3 09:56:46 2013
@@ -586,12 +586,16 @@ public class Loader extends BaseImportLo
     private Node getTargetNode(Session session, String path) throws RepositoryException {
 
         // not specified path directive
-        if (path == null) return session.getRootNode();
+        if (path == null) {
+            return session.getRootNode();
+        }
 
         int firstSlash = path.indexOf("/");
 
         // it's a relative path
-        if (firstSlash != 0) path = "/" + path;
+        if (firstSlash != 0) {
+            path = "/" + path;
+        }
 
         if (!session.itemExists(path)) {
             Node currentNode = session.getRootNode();



Mime
View raw message