mrglavas    2003/11/18 10:14:18

  Modified:    java/src/org/apache/xerces/parsers XML11Configuration.java
  Log:
  Actually set flag which indicates that XML11 components have
  been initialized. We were recreating them on every parse.
  
  Revision  Changes    Path
  1.10      +7 -5      
xml-xerces/java/src/org/apache/xerces/parsers/XML11Configuration.java
  
  Index: XML11Configuration.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/XML11Configuration.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- XML11Configuration.java   14 Nov 2003 23:19:36 -0000      1.9
  +++ XML11Configuration.java   18 Nov 2003 18:14:18 -0000      1.10
  @@ -393,8 +393,8 @@
       /** Current DTD scanner. */
       protected XMLDTDScanner fCurrentDTDScanner;
   
  -
  -    private boolean fInitalized = false;
  +    /** Flag indiciating whether XML11 components have been initialized. */
  +    private boolean f11Initialized = false;
   
       //
       // Constructors
  @@ -1503,7 +1503,7 @@
   
   
       private void initXML11Components() {
  -        if (!fInitalized) {
  +        if (!f11Initialized) {
   
               // create datatype factory
               fXML11DatatypeFactory = 
DTDDVFactory.getInstance(XML11_DATATYPE_VALIDATOR_FACTORY);
  @@ -1522,7 +1522,9 @@
   
               
               if (fSchemaValidator != null)
  -                             addXML11Component(fSchemaValidator);
  +                addXML11Component(fSchemaValidator);
  +                             
  +            f11Initialized = true;
           }
       }
   
  
  
  

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

Reply via email to