commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmi...@apache.org
Subject cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/dom DOMNodePointer.java
Date Sun, 04 May 2003 23:52:35 GMT
dmitri      2003/05/04 16:52:35

  Modified:    jxpath/src/java/org/apache/commons/jxpath/ri/model/jdom
                        JDOMAttributeIterator.java
               jxpath/src/java/org/apache/commons/jxpath/ri/model/dom
                        DOMNodePointer.java
  Log:
  Removed commented out code
  
  Revision  Changes    Path
  1.4       +4 -12     jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMAttributeIterator.java
  
  Index: JDOMAttributeIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMAttributeIterator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JDOMAttributeIterator.java	11 Mar 2003 00:59:30 -0000	1.3
  +++ JDOMAttributeIterator.java	4 May 2003 23:52:34 -0000	1.4
  @@ -89,13 +89,6 @@
           this.name = name;
           if (parent.getNode() instanceof Element) {
               Element element = (Element) parent.getNode();
  -//            System.err.println("ELEMENT: " + element.getName());
  -//            List a = element.getAttributes();
  -//            for (int i = 0; i < a.size(); i++) {
  -//                Attribute x = (Attribute)a.get(i);
  -//                System.err.println("ATTR: " + x.getName() + " " + 
  -//                              x.getNamespace());
  -//            }
               String prefix = name.getPrefix();
               Namespace ns;
               if (prefix != null) {
  @@ -120,7 +113,6 @@
                   attributes = new ArrayList();
                   if (ns != null) {
                       Attribute attr = element.getAttribute(lname, ns);
  -//  System.err.println("LNAME=" + lname + "  NS: " + ns + " ATTR: " + attr);
                       if (attr != null) {
                           attributes.add(attr);
                       }
  
  
  
  1.17      +4 -8      jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer.java
  
  Index: DOMNodePointer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- DOMNodePointer.java	11 Mar 2003 00:59:27 -0000	1.16
  +++ DOMNodePointer.java	4 May 2003 23:52:34 -0000	1.17
  @@ -327,10 +327,6 @@
       }
   
       public boolean isLeaf() {
  -        if (node instanceof Element) {
  -//            System.err.println("HAS CHILD NODES: " + 
  -//              ((Element)node).getTagName() + " " + !node.hasChildNodes());
  -        }
           return !node.hasChildNodes();
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message