jericho     01/03/05 07:01:04

  Modified:    src/webdav/client/src/org/apache/webdav/lib State.java
               src/webdav/client/src/org/apache/webdav/util
                        WebdavResource.java
  Log:
  - Fix small things for compatibility with JDK 1.1.x
  
  Revision  Changes    Path
  1.3       +4 -4      
jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/State.java
  
  Index: State.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/State.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- State.java        2001/02/26 06:35:56     1.2
  +++ State.java        2001/03/05 15:00:45     1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/State.java,v 1.2 
2001/02/26 06:35:56 remm Exp $
  - * $Revision: 1.2 $
  - * $Date: 2001/02/26 06:35:56 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/State.java,v 1.3 
2001/03/05 15:00:45 jericho Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/03/05 15:00:45 $
    *
    * ====================================================================
    *
  @@ -136,7 +136,7 @@
                   if (cookie.getDomain().equals(tmp.getDomain()) && 
                       cookie.getName().equals(tmp.getName())) {
                       found = true;
  -                    cookies.remove(tmp);
  +                    cookies.removeElement(tmp);
                   }
               }
               cookies.addElement(cookie);
  
  
  
  1.8       +4 -5      
jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java
  
  Index: WebdavResource.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WebdavResource.java       2001/03/05 10:05:27     1.7
  +++ WebdavResource.java       2001/03/05 15:00:56     1.8
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java,v
 1.7 2001/03/05 10:05:27 juergen Exp $
  - * $Revision: 1.7 $
  - * $Date: 2001/03/05 10:05:27 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java,v
 1.8 2001/03/05 15:00:56 jericho Exp $
  + * $Revision: 1.8 $
  + * $Date: 2001/03/05 15:00:56 $
    *
    * ====================================================================
    *
  @@ -1960,8 +1960,7 @@
               if (anotherPort == -1)
                   anotherPort = 80;
               if (thisPort != anotherPort)
  -                return (new Integer(thisPort)).compareTo(
  -                    new Integer(anotherPort));
  +                return (thisPort < anotherPort) ? -1 : 1;
   
               boolean thisCollection = isCollection();
               boolean anotherCollection = another.isCollection();
  
  
  

Reply via email to