xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zong...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/dom XSLTCDTMManager.java
Date Tue, 13 Aug 2002 21:20:24 GMT
zongaro     2002/08/13 14:20:24

  Modified:    java/src/org/apache/xalan/xsltc/dom Tag: XSLTC_DTM
                        XSLTCDTMManager.java
  Log:
  Some minor code clean-up.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +9 -8      xml-xalan/java/src/org/apache/xalan/xsltc/dom/Attic/XSLTCDTMManager.java
  
  Index: XSLTCDTMManager.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/Attic/XSLTCDTMManager.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- XSLTCDTMManager.java	17 Apr 2002 18:13:44 -0000	1.1.2.1
  +++ XSLTCDTMManager.java	13 Aug 2002 21:20:23 -0000	1.1.2.2
  @@ -316,10 +316,10 @@
               // System.out.println("Using IncrementalSAXSource_Xerces to avoid threading");
               try {
                 // should be ok, it's in the same package - no need for thread class loader,
  -							// AND theoretically no need for reflection...
  +              // AND theoretically no need for reflection...
                 // Class c=Class.forName( "org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces"
);
  -              // coParser=(IncrementalSAXSource)c.newInstance();
  -							coParser=org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces.createIncrementalSAXSource();
  +               coParser=org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces
  +                                              .createIncrementalSAXSource();
               }  catch( Exception ex ) {
                 ex.printStackTrace();
                 coParser=null;
  @@ -520,7 +520,7 @@
           // Go ahead and add the DTM to the lookup table.  This needs to be
           // done before any parsing occurs. Note offset 0, since we've just
           // created a new DTM.
  - 	    addDTM(dtm, dtmPos, 0);
  +        addDTM(dtm, dtmPos, 0);
   
           boolean haveXercesParser =
             (null != reader)
  @@ -528,10 +528,10 @@
   	
           if (haveXercesParser)
             incremental = true;  // No matter what.  %REVIEW%
  -	
  +
           // If the reader is null, but they still requested an incremental build,
           // then we still want to set up the IncrementalSAXSource stuff.
  -        if (this.m_incremental && incremental /* || ((null == reader) &&
incremental) */)
  +        if (this.m_incremental && incremental)
           {
             IncrementalSAXSource coParser=null;
   
  @@ -541,10 +541,11 @@
               // System.out.println("Using IncrementalSAXSource_Xerces to avoid threading");
               try {
                 // should be ok, it's in the same package - no need for thread class loader,
  -							// AND theoretically no need for reflection...
  +              // AND theoretically no need for reflection...
                 // Class c=Class.forName( "org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces"
);
                 // coParser=(IncrementalSAXSource)c.newInstance();
  -							coParser=org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces.createIncrementalSAXSource();
  +              coParser=org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces
  +                                             .createIncrementalSAXSource();
               }  catch( Exception ex ) {
                 ex.printStackTrace();
                 coParser=null;
  
  
  

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


Mime
View raw message