jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1135503 - /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Tue, 14 Jun 2011 11:52:57 GMT
Author: mduerig
Date: Tue Jun 14 11:52:57 2011
New Revision: 1135503

URL: http://svn.apache.org/viewvc?rev=1135503&view=rev
Log:
spi2microkernel prototype (WIP)
comment

Modified:
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java?rev=1135503&r1=1135502&r2=1135503&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Tue Jun 14 11:52:57 2011
@@ -446,14 +446,13 @@ public class RepositoryServiceImpl exten
         }
 
         private String target(NodeId nodeId) throws RepositoryException {
-            // TODO this is not correctly escaped
-            return "\"" + PathUtil.relativize("/", Paths.translateQPath(sessionInfo.getWorkspaceName(),
nodeId.getPath())) + "\"";
+            return '\"' + PathUtil.relativize("/", Paths.translateQPath(sessionInfo.getWorkspaceName(),
nodeId.getPath())) + '\"';
         }
 
         private String target(NodeId parentId, Name itemName) throws RepositoryException
{
             String path = Paths.translateQPath(sessionInfo.getWorkspaceName(), parentId.getPath());
             String name = Paths.translateQName(itemName);
-            return "\"" + PathUtil.concat(PathUtil.relativize("/", path), name) + "\"";
+            return '\"' + PathUtil.concat(PathUtil.relativize("/", path), name) + '\"';
         }
 
         private void setProperty(NodeId parentId, Name propertyName, String jsonValue) throws
RepositoryException {



Mime
View raw message