axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/utils XMLUtils.java
Date Wed, 10 Oct 2001 16:17:56 GMT
bloritsch    01/10/10 09:17:56

  Modified:    java/src/org/apache/axis/utils XMLUtils.java
  Log:
  collapse the explicit Document variable.  We may not have to do XInclude after all.
  
  Revision  Changes    Path
  1.21      +3 -8      xml-axis/java/src/org/apache/axis/utils/XMLUtils.java
  
  Index: XMLUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/XMLUtils.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- XMLUtils.java	2001/10/10 15:33:39	1.20
  +++ XMLUtils.java	2001/10/10 16:17:56	1.21
  @@ -55,12 +55,8 @@
   
   package org.apache.axis.utils ;
   
  -import org.apache.axis.Constants;
  -import org.w3c.dom.Attr;
  -import org.w3c.dom.Document;
  -import org.w3c.dom.Element;
  -import org.w3c.dom.NamedNodeMap;
  -import org.w3c.dom.Node;
  +import org.apache.axis.Constants;
  +import org.w3c.dom.*;
   import org.xml.sax.InputSource;
   import org.xml.sax.SAXException;
   
  @@ -195,8 +191,7 @@
   
       public static Document newDocument(InputSource inp) {
           try {
  -            Document doc = dbf.newDocumentBuilder().parse( inp );
  -            return( doc );
  +            return( dbf.newDocumentBuilder().parse( inp ) );
           }
           catch( Exception e ) {
               e.printStackTrace();
  
  
  

Mime
View raw message