From: mike Date: Fri, 29 Jun 2007 10:24:24 +0000 (+0000) Subject: Use new three-argument forms of boolean-node constructors. X-Git-Tag: v1.5~93 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=279b7de35a9e7b71cb9f774cd4420558c3727dd1;p=cql-java-moved-to-github.git Use new three-argument forms of boolean-node constructors. --- diff --git a/src/org/z3950/zing/cql/CQLGenerator.java b/src/org/z3950/zing/cql/CQLGenerator.java index 7cde23e..d16c952 100644 --- a/src/org/z3950/zing/cql/CQLGenerator.java +++ b/src/org/z3950/zing/cql/CQLGenerator.java @@ -1,4 +1,4 @@ -// $Id: CQLGenerator.java,v 1.7 2007-06-27 22:39:55 mike Exp $ +// $Id: CQLGenerator.java,v 1.8 2007-06-29 10:24:24 mike Exp $ package org.z3950.zing.cql; import java.util.Properties; @@ -22,7 +22,7 @@ import java.io.FileNotFoundException; * this distribution - there is a generate_x() method * for each grammar element X. * - * @version $Id: CQLGenerator.java,v 1.7 2007-06-27 22:39:55 mike Exp $ + * @version $Id: CQLGenerator.java,v 1.8 2007-06-29 10:24:24 mike Exp $ * @see http://zing.z3950.org/cql/index.html */ @@ -141,9 +141,9 @@ public class CQLGenerator { // ### generate proximity nodes } else { switch (rnd.nextInt(3)) { - case 0: return new CQLAndNode(node1, node2); - case 1: return new CQLOrNode(node1, node2); - case 2: return new CQLNotNode(node1, node2); + case 0: return new CQLAndNode(node1, node2, null); + case 1: return new CQLOrNode(node1, node2, null); + case 2: return new CQLNotNode(node1, node2, null); } }