incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r918987 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
Date Thu, 04 Mar 2010 13:44:44 GMT
Author: cziegeler
Date: Thu Mar  4 13:44:44 2010
New Revision: 918987

URL: http://svn.apache.org/viewvc?rev=918987&view=rev
Log:
Fix indent

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java?rev=918987&r1=918986&r2=918987&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
Thu Mar  4 13:44:44 2010
@@ -214,24 +214,25 @@
                     realPath);
                 res = new StarResource(this, ensureAbsPath(realPath));
 
-            } else
+            } else {
 
-            if (realPath.startsWith("/")) {
+                if (realPath.startsWith("/")) {
 
-                // let's check it with a direct access first
-                log.debug("resolve: Try absolute mapped path {}", realPath);
-                res = resolveInternal(realPath);
+                    // let's check it with a direct access first
+                    log.debug("resolve: Try absolute mapped path {}", realPath);
+                    res = resolveInternal(realPath);
 
-            } else {
+                } else {
 
-                String[] searchPath = getSearchPath();
-                for (int spi = 0; res == null && spi < searchPath.length; spi++)
{
-                    log.debug(
-                        "resolve: Try relative mapped path with search path entry {}",
-                        searchPath[spi]);
-                    res = resolveInternal(searchPath[spi] + realPath);
-                }
+                    String[] searchPath = getSearchPath();
+                    for (int spi = 0; res == null && spi < searchPath.length;
spi++) {
+                        log.debug(
+                            "resolve: Try relative mapped path with search path entry {}",
+                            searchPath[spi]);
+                        res = resolveInternal(searchPath[spi] + realPath);
+                    }
 
+                }
             }
 
         }



Mime
View raw message