jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r611223 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
Date Fri, 11 Jan 2008 16:20:50 GMT
Author: stefan
Date: Fri Jan 11 08:20:47 2008
New Revision: 611223

URL: http://svn.apache.org/viewvc?rev=611223&view=rev
Log:
fixed incorrect @since tag

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java?rev=611223&r1=611222&r2=611223&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
Fri Jan 11 08:20:47 2008
@@ -1385,6 +1385,27 @@
         return wsp.getLockManager();
     }
 
+    /**
+     * Returns all locks owned by this session.
+     *
+     * @return an array of <code>Lock</code>s
+     */
+    public Lock[] getLocks() {
+        // check sanity of this session
+        //sanityCheck();
+        if (!alive) {
+            log.error("failed to retrieve locks: session has been closed");
+            return new Lock[0];
+        }
+
+        try {
+            return getLockManager().getLocks(this);
+        } catch (RepositoryException e) {
+            log.error("Lock manager not available.", e);
+            return new Lock[0];
+        }
+    }
+
     //--------------------------------------------------< new JSR 283 methods >
     /**
      * Returns the node specified by the given identifier. Applies to both
@@ -1533,28 +1554,6 @@
             String msg = "invalid path:" + absPath;
             log.debug(msg);
             throw new RepositoryException(msg, e);
-        }
-    }
-
-    /**
-     * Returns all locks owned by this session.
-     *
-     * @return an array of <code>Lock</code>s
-     * @since JCR 2.0
-     */
-    public Lock[] getLocks() {
-        // check sanity of this session
-        //sanityCheck();
-        if (!alive) {
-            log.error("failed to retrieve locks: session has been closed");
-            return new Lock[0];
-        }
-
-        try {
-            return getLockManager().getLocks(this);
-        } catch (RepositoryException e) {
-            log.error("Lock manager not available.", e);
-            return new Lock[0];
         }
     }
 



Mime
View raw message