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 wa...@apache.org on 2002/07/29 14:17:39 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/search/basic NotNormalizer.java

wam         2002/07/29 05:17:39

  Modified:    src/share/org/apache/slide/search/basic NotNormalizer.java
  Log:
  adopt to jdomb8
  
  Revision  Changes    Path
  1.3       +12 -5     jakarta-slide/src/share/org/apache/slide/search/basic/NotNormalizer.java
  
  Index: NotNormalizer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/search/basic/NotNormalizer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- NotNormalizer.java	6 Jun 2002 04:53:25 -0000	1.2
  +++ NotNormalizer.java	29 Jul 2002 12:17:39 -0000	1.3
  @@ -63,6 +63,7 @@
   package org.apache.slide.search.basic;
   
   // import list
  +import org.jdom.Attribute;
   import org.jdom.Element;
   import org.jdom.Namespace;
   import org.jdom.JDOMException;
  @@ -352,7 +353,13 @@
           
           Element copy = new Element(newName, newNamespace);
           copy.setText(source.getText());
  -        copy.setAttributes(source.getAttributes());
  +        Iterator it = source.getAttributes().iterator();
  +    
  +        while (it.hasNext()) {
  +            Attribute attr = (Attribute)it.next();
  +            copy.setAttribute ((Attribute)attr.clone());
  +        }
  +        
           return copy;
       }
   }
  
  
  

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