You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by am...@apache.org on 2002/03/11 23:27:01 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler StepPattern.java
amiro 02/03/11 14:27:01
Modified: java/src/org/apache/xalan/xsltc/compiler StepPattern.java
Log:
just minor change to syntax
Revision Changes Path
1.14 +5 -3 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/StepPattern.java
Index: StepPattern.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/StepPattern.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- StepPattern.java 1 Feb 2002 20:07:08 -0000 1.13
+++ StepPattern.java 11 Mar 2002 22:27:01 -0000 1.14
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: StepPattern.java,v 1.13 2002/02/01 20:07:08 tmiller Exp $
+ * @(#)$Id: StepPattern.java,v 1.14 2002/03/11 22:27:01 amiro Exp $
*
* The Apache Software License, Version 1.1
*
@@ -162,10 +162,12 @@
private int analyzeCases() {
boolean noContext = true;
final int n = _predicates.size();
+
for (int i = 0; i < n && noContext; i++) {
final Predicate pred = (Predicate)_predicates.elementAt(i);
- final Expression exp = pred.getExpr();
- if (exp.hasPositionCall()) noContext = false;
+ if (pred.getExpr().hasPositionCall()) {
+ noContext = false;
+ }
}
if (noContext) {
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org