You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/06/12 15:51:28 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler ForEach.java XSLTC.java

morten      01/06/12 06:51:27

  Modified:    java/src/org/apache/xalan/xsltc/compiler ForEach.java
                        XSLTC.java
  Log:
  Fix to prevent compiler warnings to be output more than once.
  PR:		n/a
  Obtained from:	n/a
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.4       +2 -1      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/ForEach.java
  
  Index: ForEach.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/ForEach.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ForEach.java	2001/06/06 10:44:57	1.3
  +++ ForEach.java	2001/06/12 13:51:22	1.4
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: ForEach.java,v 1.3 2001/06/06 10:44:57 morten Exp $
  + * @(#)$Id: ForEach.java,v 1.4 2001/06/12 13:51:22 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -89,6 +89,7 @@
   		
       public void parseContents(Parser parser) {
   	_select = parser.parseExpression(this, "select", null);
  +
   	parseChildren(parser);
   
           // make sure required attribute(s) have been set
  
  
  
  1.9       +5 -4      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/XSLTC.java
  
  Index: XSLTC.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/XSLTC.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- XSLTC.java	2001/06/11 14:09:00	1.8
  +++ XSLTC.java	2001/06/12 13:51:23	1.9
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: XSLTC.java,v 1.8 2001/06/11 14:09:00 tmiller Exp $
  + * @(#)$Id: XSLTC.java,v 1.9 2001/06/12 13:51:23 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -254,8 +254,8 @@
   	    final SyntaxTreeNode element = _parser.parse(url);
   
   	    // Process any error and/or warning messages found so far...
  -	    _parser.printWarnings();
   	    if ((_parser.errorsFound()) || (element == null)) {
  +		_parser.printWarnings();
   		_parser.printErrors();
   		return false;
   	    }
  @@ -268,8 +268,8 @@
   	    _parser.createAST(_stylesheet);
   
   	    // Process any error and/or warning messages found so far...
  -	    _parser.printWarnings();
   	    if ((_parser.errorsFound()) || (_stylesheet == null)) {
  +		_parser.printWarnings();
   		_parser.printErrors();
   		return false;
   	    }
  @@ -279,12 +279,13 @@
   	    _stylesheet.translate();
   
   	    // Process any error and/or warning messages found so far...
  -	    _parser.printWarnings();
   	    if ((_parser.errorsFound()) || (_stylesheet == null)) {
  +		_parser.printWarnings();
   		_parser.printErrors();
   		return false;
   	    }
   
  +	    _parser.printWarnings();
   	    return true;
   	}
   	catch (CompilerException e) {
  
  
  

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