incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r951642 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Date Sat, 05 Jun 2010 03:24:37 GMT
Author: justin
Date: Sat Jun  5 03:24:37 2010
New Revision: 951642

URL: http://svn.apache.org/viewvc?rev=951642&view=rev
Log:
fixing formatting

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

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java?rev=951642&r1=951641&r2=951642&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Sat Jun  5 03:24:37 2010
@@ -133,11 +133,11 @@ public class JcrResourceProvider impleme
             String path) throws RepositoryException {
         if (useMultiWorkspaces) {
             final int wsSepPos = path.indexOf(":/");
-                if (wsSepPos != -1) {
-                    final String workspaceName = path.substring(0, wsSepPos);
-                    final String expectedWorkspaceName = getSession().getWorkspace().getName();
-                    if (workspaceName.equals(expectedWorkspaceName)) {
-                        path = path.substring(wsSepPos + 1);
+            if (wsSepPos != -1) {
+                final String workspaceName = path.substring(0, wsSepPos);
+                final String expectedWorkspaceName = getSession().getWorkspace().getName();
+                if (workspaceName.equals(expectedWorkspaceName)) {
+                    path = path.substring(wsSepPos + 1);
                 } else {
                     throw new RepositoryException("Unexpected workspace name. Expected "
+
                             expectedWorkspaceName + ". Actual " + workspaceName);



Mime
View raw message