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:33:51 GMT
bloritsch    01/10/10 09:33:50

  Modified:    java/src/org/apache/axis/utils XMLUtils.java
  Log:
  Clean up DOM init() method to be consistent with SAX init().
  
  Revision  Changes    Path
  1.22      +2 -4      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.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- XMLUtils.java	2001/10/10 16:17:56	1.21
  +++ XMLUtils.java	2001/10/10 16:33:50	1.22
  @@ -71,7 +71,7 @@
   import java.util.Stack;
   
   public class XMLUtils {
  -    private static DocumentBuilderFactory dbf = init();
  +    private static DocumentBuilderFactory dbf = initDOMFactory();
       private static SAXParserFactory       saxFactory;
       private static Stack                  saxParsers = new Stack();
       
  @@ -141,9 +141,7 @@
           saxFactory.setValidating(validating);
       }
   
  -    public static DocumentBuilderFactory init() {
  -        Document               doc = null ;
  -
  +    public static DocumentBuilderFactory initDOMFactory() {
           try {
               dbf = DocumentBuilderFactory.newInstance();
               dbf.setNamespaceAware(true);
  
  
  

Mime
View raw message