incubator-sling-commits mailing list archives

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

URL: http://svn.apache.org/r1528779
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=1528779&r1=1528778&r2=1528779&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 10:19:28 2013
@@ -590,10 +590,8 @@ public class Loader extends BaseImportLo
             return session.getRootNode();
         }
 
-        int firstSlash = path.indexOf("/");
-
-        // it's a relative path
-        if (firstSlash != 0) {
+        if (!path.startsWith("/")) {
+            // make relative path absolute
             path = "/" + path;
         }
 



Mime
View raw message