mrglavas    2004/08/31 20:23:45

  Modified:    java/src/org/apache/xerces/dom EntityReferenceImpl.java
                        NotationImpl.java
  Log:
  Avoid overwriting baseURI field each time getBaseURI is called.
  
  Revision  Changes    Path
  1.26      +2 -2      
xml-xerces/java/src/org/apache/xerces/dom/EntityReferenceImpl.java
  
  Index: EntityReferenceImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/dom/EntityReferenceImpl.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- EntityReferenceImpl.java  26 Aug 2004 21:28:39 -0000      1.25
  +++ EntityReferenceImpl.java  1 Sep 2004 03:23:45 -0000       1.26
  @@ -171,7 +171,7 @@
               }
           } else if (baseURI != null && baseURI.length() != 0 ) {// attribute value 
is always empty string
               try {
  -                baseURI = new URI(baseURI).toString();
  +                return new URI(baseURI).toString();
               }
               catch (org.apache.xerces.util.URI.MalformedURIException e){
                   // REVISIT: what should happen in this case?
  
  
  
  1.19      +2 -2      xml-xerces/java/src/org/apache/xerces/dom/NotationImpl.java
  
  Index: NotationImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/NotationImpl.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- NotationImpl.java 26 Aug 2004 21:28:39 -0000      1.18
  +++ NotationImpl.java 1 Sep 2004 03:23:45 -0000       1.19
  @@ -186,7 +186,7 @@
           }
           if (baseURI != null && baseURI.length() != 0 ) {// attribute value is 
always empty string
               try {
  -                baseURI = new URI(baseURI).toString();
  +                return new URI(baseURI).toString();
               }
               catch (org.apache.xerces.util.URI.MalformedURIException e){
                   // REVISIT: what should happen in this case?
  
  
  

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

Reply via email to