jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1339171 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
Date Wed, 16 May 2012 13:59:42 GMT
Author: reschke
Date: Wed May 16 13:59:41 2012
New Revision: 1339171

URL: http://svn.apache.org/viewvc?rev=1339171&view=rev
Log:
OAK-23: lez AbstractSession handle Session.getItem(identifier) (see also JCR-3312) (WIP)

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java?rev=1339171&r1=1339170&r2=1339171&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
Wed May 16 13:59:41 2012
@@ -79,16 +79,6 @@ public class SessionImpl extends Abstrac
     }
 
     @Override
-    public Item getItem(String absPath) throws PathNotFoundException, RepositoryException
{
-        if (absPath.startsWith("[") && absPath.endsWith("]")) {
-            // TODO OAK-23 - maybe this code should be added in AbstractSession
-            return getNodeByIdentifier(absPath.substring(1, absPath.length() - 1));
-        } else {
-            return super.getItem(absPath);
-        }
-    }
-    
-    @Override
     public Workspace getWorkspace() {
         return dlg.getWorkspace();
     }



Mime
View raw message