mkwan       2002/09/23 09:25:12

  Modified:    java/src/org/apache/xpath DOMHelper.java
  Log:
  The isNodeTheSame(node1, node2) interface should return true if node1==node2.
  
  Revision  Changes    Path
  1.30      +2 -3      xml-xalan/java/src/org/apache/xpath/DOMHelper.java
  
  Index: DOMHelper.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/DOMHelper.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- DOMHelper.java    22 Mar 2002 14:47:22 -0000      1.29
  +++ DOMHelper.java    23 Sep 2002 16:25:12 -0000      1.30
  @@ -337,15 +337,14 @@
      * 
      * @param node1 The first DOM node to compare.
      * @param node2 The second DOM node to compare.
  -   * @return true if the two nodes are the same, false if not or if
  -   * the nodes are not DTMNodeProxy.
  +   * @return true if the two nodes are the same.
      */
     public static boolean isNodeTheSame(Node node1, Node node2)
     {
       if (node1 instanceof DTMNodeProxy && node2 instanceof DTMNodeProxy)
         return ((DTMNodeProxy)node1).equals((DTMNodeProxy)node2);
       else
  -      return false;
  +      return (node1 == node2);
     }
   
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to