jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r783320 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/SessionLockManager.java
Date Wed, 10 Jun 2009 12:39:09 GMT
Author: angela
Date: Wed Jun 10 12:39:09 2009
New Revision: 783320

URL: http://svn.apache.org/viewvc?rev=783320&view=rev
Log:
JCR-1104: JSR 283 support

- remove redundant casts now that 283 api is present

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/SessionLockManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/SessionLockManager.java?rev=783320&r1=783319&r2=783320&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/SessionLockManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/SessionLockManager.java
Wed Jun 10 12:39:09 2009
@@ -120,14 +120,14 @@
             while (node.isNew()) {
                 node = (NodeImpl) node.getParent();
             }
-            Lock l = (Lock) systemLockMgr.getLock(node);
+            Lock l = systemLockMgr.getLock(node);
             if (l.isDeep()) {
                 return l;
             } else {
                 throw new LockException("Node not locked: " + node);
             }
         } else {
-            return (Lock) systemLockMgr.getLock(node);
+            return systemLockMgr.getLock(node);
         }
     }
 
@@ -157,7 +157,7 @@
         checkLockable(node);
 
         synchronized (systemLockMgr) {
-            return (Lock) systemLockMgr.lock(node, isDeep, isSessionScoped, timeoutHint,
ownerInfo);
+            return systemLockMgr.lock(node, isDeep, isSessionScoped, timeoutHint, ownerInfo);
         }
     }
 



Mime
View raw message