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 ju...@apache.org on 2002/06/03 13:59:40 UTC

cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method PropPatchMethod.java

juergen     2002/06/03 04:59:40

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        PropPatchMethod.java
  Log:
  Fixed bug:
  Allow multiple <add> and <remove> elements.
  (ralf)
  
  Revision  Changes    Path
  1.52      +5 -5      jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java
  
  Index: PropPatchMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- PropPatchMethod.java	28 May 2002 12:39:40 -0000	1.51
  +++ PropPatchMethod.java	3 Jun 2002 11:59:40 -0000	1.52
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v 1.51 2002/05/28 12:39:40 juergen Exp $
  - * $Revision: 1.51 $
  - * $Date: 2002/05/28 12:39:40 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v 1.52 2002/06/03 11:59:40 juergen Exp $
  + * $Revision: 1.52 $
  + * $Date: 2002/06/03 11:59:40 $
    *
    * ====================================================================
    *
  @@ -198,10 +198,10 @@
                   while (childrenIterator.hasNext()) {
                       child = (Element)childrenIterator.next();
                       if (E_SET.equals(child.getName())) {
  -                        propertiesToSet = new PropPatchProperties(getPropElement(child));
  +                        propertiesToSet.add(getPropElement(child));
                                               }
                       else if (E_REMOVE.equals(child.getName())) {
  -                        propertiesToRemove = new PropPatchProperties(getPropElement(child));
  +                        propertiesToRemove.add(getPropElement(child));
                                       }
                       else {
                           throw new JDOMException("Expected &lt;"+E_SET+"&gt; or &lt;"+E_REMOVE+"&gt; element");
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>