santiagopg 02/04/26 11:09:49
Modified: java/src/org/apache/xalan/xsltc/compiler VariableBase.java
Log:
Added check to avoid duplicate dependencies.
Revision Changes Path
1.14 +7 -3
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/VariableBase.java
Index: VariableBase.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/VariableBase.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- VariableBase.java 1 Feb 2002 20:07:09 -0000 1.13
+++ VariableBase.java 26 Apr 2002 18:09:49 -0000 1.14
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: VariableBase.java,v 1.13 2002/02/01 20:07:09 tmiller Exp $
+ * @(#)$Id: VariableBase.java,v 1.14 2002/04/26 18:09:49 santiagopg Exp $
*
* The Apache Software License, Version 1.1
*
@@ -125,8 +125,12 @@
*
*/
public void addDependency(VariableBase other) {
- if (_dependencies == null) _dependencies = new Vector();
- _dependencies.addElement(other);
+ if (_dependencies == null) {
+ _dependencies = new Vector();
+ }
+ if (!_dependencies.contains(other)) {
+ _dependencies.addElement(other);
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]