peterreilly 2005/01/24 02:11:32 Modified: src/main/org/apache/tools/ant/taskdefs/condition Xor.java Log: javadoc + space around operands Revision Changes Path 1.2 +5 -4 ant/src/main/org/apache/tools/ant/taskdefs/condition/Xor.java Index: Xor.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/condition/Xor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Xor.java 22 Jan 2005 22:01:15 -0000 1.1 +++ Xor.java 24 Jan 2005 10:11:32 -0000 1.2 @@ -22,19 +22,20 @@ /** * <tt>Xor</tt> task to exclusive or operations. - * This does not shortcut stuff + * This does not shortcut stuff. */ public class Xor extends ConditionBase implements Condition { /** - * @return true if all the contained conditions evaluates to true + * Evaluate the contained conditions. + * @return the result of xoring the conditions together. * @throws org.apache.tools.ant.BuildException - * if an error occurs + * if an error occurs. */ public boolean eval() throws BuildException { Enumeration e = getConditions(); //initial state is false. - boolean state=false; + boolean state = false; while (e.hasMoreElements()) { Condition c = (Condition) e.nextElement(); //every condition is xored against the previous one
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]