jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r783319 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Date Wed, 10 Jun 2009 12:38:45 GMT
Author: angela
Date: Wed Jun 10 12:38:45 2009
New Revision: 783319

URL: http://svn.apache.org/viewvc?rev=783319&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/NodeImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java?rev=783319&r1=783318&r2=783319&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Wed Jun 10 12:38:45 2009
@@ -3074,7 +3074,7 @@
 
         NodeIterator iter = getSharedSet();
         while (iter.hasNext()) {
-            ((NodeImpl) iter.nextNode()).removeShare();
+            iter.nextNode().removeShare();
         }
     }
 
@@ -4464,7 +4464,7 @@
             RepositoryException {
         // check state of this instance
         sanityCheck();
-        LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager();
+        LockManager lockMgr = session.getWorkspace().getLockManager();
         return lockMgr.lock(getPath(), isDeep, isSessionScoped, Long.MAX_VALUE, null);
     }
 
@@ -4476,7 +4476,7 @@
             AccessDeniedException, RepositoryException {
         // check state of this instance
         sanityCheck();
-        LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager();
+        LockManager lockMgr = session.getWorkspace().getLockManager();
         return lockMgr.getLock(getPath());
     }
 
@@ -4489,7 +4489,7 @@
             RepositoryException {
         // check state of this instance
         sanityCheck();
-        LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager();
+        LockManager lockMgr = session.getWorkspace().getLockManager();
         lockMgr.unlock(getPath());
     }
 
@@ -4499,7 +4499,7 @@
     public boolean holdsLock() throws RepositoryException {
         // check state of this instance
         sanityCheck();
-        LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager();
+        LockManager lockMgr = session.getWorkspace().getLockManager();
         return lockMgr.holdsLock(getPath());
     }
 
@@ -4509,7 +4509,7 @@
     public boolean isLocked() throws RepositoryException {
         // check state of this instance
         sanityCheck();
-        LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager();
+        LockManager lockMgr = session.getWorkspace().getLockManager();
         return lockMgr.isLocked(getPath());
     }
 



Mime
View raw message