jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r161866 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java
Date Tue, 19 Apr 2005 10:00:38 GMT
Author: stefan
Date: Tue Apr 19 03:00:36 2005
New Revision: 161866

URL: http://svn.apache.org/viewcvs?view=rev&rev=161866
Log:
minor optimization: avoid unnecessary throwing & catching of exception

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java?view=diff&r1=161865&r2=161866
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java Tue Apr 19
03:00:36 2005
@@ -3717,9 +3717,7 @@
         // check state of this instance
         sanityCheck();
 
-        try {
-            checkLockable();
-        } catch (UnsupportedRepositoryOperationException  e) {
+        if (!isNodeType(MIX_LOCKABLE)) {
             // a node that is not lockable never holds a lock
             return false;
         }



Mime
View raw message