You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@locus.apache.org on 2000/12/06 01:43:01 UTC

cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods LockMethod.java

remm        00/12/05 16:43:00

  Modified:    src/webdav/client/src/org/apache/webdav/lib/methods
                        LockMethod.java
  Log:
  - Use a constant for depth infinity.
    Submitted by Sung-Gu Park.
  
  Revision  Changes    Path
  1.6       +5 -5      jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/LockMethod.java
  
  Index: LockMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/LockMethod.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- LockMethod.java	2000/12/04 06:32:41	1.5
  +++ LockMethod.java	2000/12/06 00:42:59	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/LockMethod.java,v 1.5 2000/12/04 06:32:41 bcholmes Exp $
  - * $Revision: 1.5 $
  - * $Date: 2000/12/04 06:32:41 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/LockMethod.java,v 1.6 2000/12/06 00:42:59 remm Exp $
  + * $Revision: 1.6 $
  + * $Date: 2000/12/06 00:42:59 $
    *
    * ====================================================================
    *
  @@ -176,7 +176,7 @@
       /**
        * Depth.
        */
  -    private int depth = -1;
  +    private int depth = DEPTH_INFINITY;
   
   
       /**
  @@ -304,7 +304,7 @@
       public void recycle() {
           super.recycle();
           this.refreshOpaqueToken = null;
  -        this.depth = -1;
  +        this.depth = DEPTH_INFINITY;
           this.type = TYPE_WRITE;
           this.scope = SCOPE_EXCLUSIVE;
           this.timeout = TIMEOUT_INFINITY;