You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2003/10/31 21:52:45 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/dtd DTDGrammar.java

mrglavas    2003/10/31 12:52:45

  Modified:    java/src/org/apache/xerces/impl/dtd DTDGrammar.java
  Log:
  Performance: Reduce object creation by reusing temp QName
  (already available) instead of creating a new one for each
  element declaration.
  
  Revision  Changes    Path
  1.25      +5 -5      xml-xerces/java/src/org/apache/xerces/impl/dtd/DTDGrammar.java
  
  Index: DTDGrammar.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dtd/DTDGrammar.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- DTDGrammar.java	8 May 2003 19:56:25 -0000	1.24
  +++ DTDGrammar.java	31 Oct 2003 20:52:45 -0000	1.25
  @@ -527,10 +527,10 @@
           }
   
           XMLElementDecl elementDecl       = new XMLElementDecl();
  -        QName          elementName       = new QName(null, name, name, null);
  -        //XMLSimpleType  elementSimpleType = new XMLSimpleType();
  -
  -        elementDecl.name.setValues(elementName);
  +        
  +        fQName.setValues(null, name, name, null);
  +       
  +        elementDecl.name.setValues(fQName);
   
           elementDecl.contentModelValidator = null;
           elementDecl.scope= -1;
  
  
  

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