You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/02/14 04:10:42 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath/patterns NodeTest.java

sboag       01/02/13 19:10:41

  Modified:    java/src/org/apache/xpath/patterns NodeTest.java
  Log:
  Return an empty string instead of null from getLocalName() when the
  nodetest does not have a name.  Encountered with the SQL extension,
  in response to bug reported by "Michael Kay" <mh...@iclway.co.uk>,
  02/08/2001 08:57 AM.
  
  Revision  Changes    Path
  1.19      +2 -2      xml-xalan/java/src/org/apache/xpath/patterns/NodeTest.java
  
  Index: NodeTest.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/patterns/NodeTest.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- NodeTest.java	2001/01/11 18:12:48	1.18
  +++ NodeTest.java	2001/02/14 03:10:41	1.19
  @@ -137,11 +137,11 @@
     /**
      * Return the local namespace to be tested.
      *
  -   * @return the local namespace to be tested, or {@link #WILD}, or null.
  +   * @return the local namespace to be tested, or {@link #WILD}, or an empty string.
      */
     public String getLocalName()
     {
  -    return m_name;
  +    return (null == m_name) ? "" : m_name;
     }
   
     /** Statically calculated score for this test.  One of