webwork/src/main/webwork/util Query.java,1.13,1.13.2.1
[email protected] Thu, 23 May 2002 19:21:02 -0700
| Newsgroups | gmane.comp.java.webwork.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/webwork/webwork/src/main/webwork/util
In directory usw-pr-cvs1:/tmp/cvs-serv21780
Modified Files:
Tag: branch-release-1-0-3
Query.java
Log Message:
added Tom Quellenberg's patch - add segment in advance
if (segmentsIdx == segments.length - 1) { ...
Index: Query.java
===================================================================
RCS file: /cvsroot/webwork/webwork/src/main/webwork/util/Query.java,v
retrieving revision 1.13
retrieving revision 1.13.2.1
diff -u -d -r1.13 -r1.13.2.1
--- Query.java 26 Apr 2002 19:30:27 -0000 1.13
+++ Query.java 24 May 2002 02:21:00 -0000 1.13.2.1
@@ -10,11 +10,11 @@
import java.util.Map;
/**
- * ValueStack Query. This class parsers the ValueStack Query string
+ * ValueStack Query. This class parsers the ValueStack Query string
* and caches the parsed query.
*
* @author Maurice C. Parker ([email protected])
- * @version $Revision$
+ * @version $Revision$
*/
public class Query {
// Static -------------------------------------------------------
@@ -373,7 +373,7 @@
* Add another segment to the segments array.
*/
private void add(QuerySegment qs) {
- if (segmentsIdx == segments.length) {
+ if (segmentsIdx == segments.length-1) {
QuerySegment[] resize = new QuerySegment[segments.length + 5];
System.arraycopy(segments, 0, resize, 0, segments.length);
segments = resize;
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm