jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r752840 - /jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/lock/DefaultActiveLock.java
Date Thu, 12 Mar 2009 12:15:45 GMT
Author: angela
Date: Thu Mar 12 12:15:44 2009
New Revision: 752840

URL: http://svn.apache.org/viewvc?rev=752840&view=rev
Log:
fix indention

Modified:
    jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/lock/DefaultActiveLock.java

Modified: jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/lock/DefaultActiveLock.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/lock/DefaultActiveLock.java?rev=752840&r1=752839&r2=752840&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/lock/DefaultActiveLock.java
(original)
+++ jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/lock/DefaultActiveLock.java
Thu Mar 12 12:15:44 2009
@@ -51,7 +51,7 @@
     public DefaultActiveLock(LockInfo lockInfo) {
         if (lockInfo != null) {
             if (!(Type.WRITE.equals(lockInfo.getType()) && Scope.EXCLUSIVE.equals(lockInfo.getScope())))
{
-               throw new IllegalArgumentException("Only 'exclusive write' lock is allowed
scope/type pair.");
+                throw new IllegalArgumentException("Only 'exclusive write' lock is allowed
scope/type pair.");
             }
             owner = lockInfo.getOwner();
             isDeep = lockInfo.isDeep();
@@ -63,65 +63,65 @@
      * @see ActiveLock#isLockedByToken(String)
      */
     public boolean isLockedByToken(String lockToken) {
-	return (token != null) && token.equals(lockToken);
+        return (token != null) && token.equals(lockToken);
     }
 
     /**
      * @see ActiveLock#isExpired()
      */
     public boolean isExpired() {
-	return System.currentTimeMillis() > expirationTime;
+        return System.currentTimeMillis() > expirationTime;
     }
 
     /**
      * @see ActiveLock#getToken()
      */
     public String getToken() {
-	return token;
+        return token;
     }
 
     /**
      * @see ActiveLock#getOwner()
      */
     public String getOwner() {
-	return owner;
+        return owner;
     }
 
     /**
      * @see ActiveLock#setOwner(String)
      */
     public void setOwner(String owner) {
-	this.owner = owner;
+        this.owner = owner;
     }
 
     /**
      * @see ActiveLock#getTimeout()
      */
     public long getTimeout() {
-	return expirationTime - System.currentTimeMillis();
+        return expirationTime - System.currentTimeMillis();
     }
 
     /**
      * @see ActiveLock#setTimeout(long)
      */
     public void setTimeout(long timeout) {
-	if (timeout > 0) {
-	    expirationTime = System.currentTimeMillis() + timeout;
-	}
+        if (timeout > 0) {
+            expirationTime = System.currentTimeMillis() + timeout;
+        }
     }
 
     /**
      * @see ActiveLock#isDeep()
      */
     public boolean isDeep() {
-	return isDeep;
+        return isDeep;
     }
 
     /**
      * @see ActiveLock#setIsDeep(boolean)
      */
     public void setIsDeep(boolean isDeep) {
-	this.isDeep = isDeep;
+        this.isDeep = isDeep;
     }
 
     /**



Mime
View raw message