From: mike Date: Fri, 29 Jun 2007 10:20:09 +0000 (+0000) Subject: Fix single-argument constructorm, which no-opped. X-Git-Tag: v1.5~99 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=5e0c07d0b5c56e81ad6bd2d5bef574343d001122;p=cql-java-moved-to-github.git Fix single-argument constructorm, which no-opped. --- diff --git a/src/org/z3950/zing/cql/Modifier.java b/src/org/z3950/zing/cql/Modifier.java index 321b2df..56cec56 100644 --- a/src/org/z3950/zing/cql/Modifier.java +++ b/src/org/z3950/zing/cql/Modifier.java @@ -1,4 +1,4 @@ -// $Id: Modifier.java,v 1.2 2007-06-27 17:18:54 mike Exp $ +// $Id: Modifier.java,v 1.3 2007-06-29 10:20:09 mike Exp $ package org.z3950.zing.cql; import java.util.Vector; @@ -12,7 +12,7 @@ import java.lang.StringBuffer; *

* This class is used only by ModifierSet. * - * @version $Id: Modifier.java,v 1.2 2007-06-27 17:18:54 mike Exp $ + * @version $Id: Modifier.java,v 1.3 2007-06-29 10:20:09 mike Exp $ */ public class Modifier { String type; @@ -34,7 +34,7 @@ public class Modifier { * Creates a new Modifier with the specified type but no * comparison or value. */ - public Modifier(String value) { + public Modifier(String type) { this.type = type; //System.err.println("Made new modifier of type '" + type + "'\n"); } @@ -78,8 +78,9 @@ public class Modifier { } public String toCQL() { - StringBuffer buf = new StringBuffer(type); + StringBuffer buf = new StringBuffer(); + buf.append(type); if (value != null) buf.append(" " + comparison + " " + value);