jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1102048 - /jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/lock/JcrActiveLock.java
Date Wed, 11 May 2011 19:36:37 GMT
Author: dbrosius
Date: Wed May 11 19:36:37 2011
New Revision: 1102048

URL: http://svn.apache.org/viewvc?rev=1102048&view=rev
Log:
lock is always of type javax.jcr.lock.Lock and won't be null due to use from above, so instanceof
check is unnecessary

Modified:
    jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/lock/JcrActiveLock.java

Modified: jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/lock/JcrActiveLock.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/lock/JcrActiveLock.java?rev=1102048&r1=1102047&r2=1102048&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/lock/JcrActiveLock.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/lock/JcrActiveLock.java
Wed May 11 19:36:37 2011
@@ -95,7 +95,6 @@ public class JcrActiveLock extends Abstr
     public String getToken() {
         String token = lock.getLockToken();
         if (token == null && lock.isSessionScoped()
-                && lock instanceof javax.jcr.lock.Lock
                 && lock.isLockOwningSession()) {
             // special handling for session scoped locks that are owned by the
             // current session but never expose their token with jsr 283.



Mime
View raw message