You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ed...@apache.org on 2001/08/03 00:10:08 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/jaxp DocumentBuilderFactoryImpl.java SAXParserFactoryImpl.java

edwingo     01/08/02 15:10:08

  Modified:    java/src/org/apache/xerces/jaxp Tag: xerces_j_2
                        DocumentBuilderFactoryImpl.java
                        SAXParserFactoryImpl.java
  Log:
  Minor fix suggested by Andy Clark
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.5   +3 -3      xml-xerces/java/src/org/apache/xerces/jaxp/DocumentBuilderFactoryImpl.java
  
  Index: DocumentBuilderFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/jaxp/DocumentBuilderFactoryImpl.java,v
  retrieving revision 1.1.4.4
  retrieving revision 1.1.4.5
  diff -u -r1.1.4.4 -r1.1.4.5
  --- DocumentBuilderFactoryImpl.java	2001/08/01 22:43:46	1.1.4.4
  +++ DocumentBuilderFactoryImpl.java	2001/08/02 22:10:08	1.1.4.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: DocumentBuilderFactoryImpl.java,v 1.1.4.4 2001/08/01 22:43:46 edwingo Exp $
  + * $Id: DocumentBuilderFactoryImpl.java,v 1.1.4.5 2001/08/02 22:10:08 edwingo Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -72,7 +72,7 @@
   /**
    * @author Rajiv Mordani
    * @author Edwin Goei
  - * @version $Revision: 1.1.4.4 $
  + * @version $Revision: 1.1.4.5 $
    */
   public class DocumentBuilderFactoryImpl extends DocumentBuilderFactory {
       /** These are DocumentBuilderFactory attributes not DOM attributes */
  @@ -139,7 +139,7 @@
               try {
                   boolean result = domParser.getFeature(name);
                   // Must have been a feature
  -                return new Boolean(result);
  +                return result ? Boolean.TRUE : Boolean.FALSE;
               } catch (SAXException se2) {
                   // Not a property or a feature
                   throw new IllegalArgumentException(se1.getMessage());
  
  
  
  1.1.4.5   +2 -2      xml-xerces/java/src/org/apache/xerces/jaxp/SAXParserFactoryImpl.java
  
  Index: SAXParserFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/jaxp/SAXParserFactoryImpl.java,v
  retrieving revision 1.1.4.4
  retrieving revision 1.1.4.5
  diff -u -r1.1.4.4 -r1.1.4.5
  --- SAXParserFactoryImpl.java	2001/03/30 23:29:59	1.1.4.4
  +++ SAXParserFactoryImpl.java	2001/08/02 22:10:08	1.1.4.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: SAXParserFactoryImpl.java,v 1.1.4.4 2001/03/30 23:29:59 edwingo Exp $
  + * $Id: SAXParserFactoryImpl.java,v 1.1.4.5 2001/08/02 22:10:08 edwingo Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -133,7 +133,7 @@
           if (features == null) {
               features = new Hashtable();
           }
  -        features.put(name, new Boolean(value));
  +        features.put(name, value ? Boolean.TRUE : Boolean.FALSE);
   
           // Test the feature by possibly throwing SAX exceptions
           try {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org